Function at 0x403310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x49b024]
xor eax, esp
mov dword [esp + 0x84], eax
mov ecx, dword [0x524e00]
mov dword [esp + 0x44], edx
push esi
push edi
mov eax, dword [ecx + 0x3c]
xor edi, edi
mov dword [esp + 8], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], edi
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
mov dword [esp + 0x54], eax
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x50], eax
test eax, eax
je 0x403567
nop dword [eax]
mov edx, dword [edx]
xorps xmm0, xmm0
add edx, ecx
movaps xmmword [esp + 0x60], xmm0
mov eax, edx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403391
sub eax, esi
lea ecx, [esp + 0x60]
push eax
push edx
call fcn.004071b0
cmp dword [esp + 8], 0
mov esi, dword [esp + 0x60]
mov dword [esp + 0x18], esi
jbe 0x403511
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x60]
mov ecx, edi
mov dword [esp + 0x30], edi
xor ecx, 0x14d
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x74], 0x10
cmovae eax, esi
mov dword [esp + 0x20], eax
mov eax, edi
shr eax, 2
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4034b1
mov edi, ecx
push ecx
call fcn.00404090
mov dword [esp + 0xc], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x5c], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0x58]
push eax
call fcn.00406860
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0x28], al
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x403445
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
call fcn.004080f0
mov ecx, dword [esp + 0xc]
call fcn.00406020
mov edx, str.Z81xbyuAua
call fcn.00406b50
push eax
call fcn.00406e20
mov edx, dword [esp + 0x20]
add esp, 4
mov eax, dword [esp + 0x20]
imul ecx, dword [eax + edx*4], 0x5bd1e991
inc edx
mov dword [esp + 0x1c], edx
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
imul eax, edi, 0x5bd1e991
xor ecx, eax
mov eax, dword [esp + 0x2c]
mov edi, ecx
cmp edx, eax
jl 0x4033f3
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
and edi, 3
lea eax, [edx + eax*4]
xor edx, edx
mov dword [esp + 0x18], eax
sub edi, 1
je 0x4034e4
sub edi, 1
je 0x4034d7
sub edi, 1
jne 0x4034f1
movsx edx, byte [eax + 2]
shl edx, 0x10
movsx eax, byte [eax + 1]
shl eax, 8
xor edx, eax
mov eax, dword [esp + 0x18]
movsx eax, byte [eax]
xor eax, edx
imul eax, eax, 0x5bd1e991
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x40350d
cmp ecx, dword [esp + 0x4c]
je 0x403581
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x74]
add edx, 4
mov dword [esp + 0x14], edx
cmp eax, 0x10
jb 0x403554
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x403546
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035de
push ecx
push esi
call fcn.0042b1ef
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 8]
inc edi
mov dword [esp + 0x10], edi
cmp edi, dword [esp + 0x50]
jb 0x403370
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.0042b1ac
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 8]
movzx ecx, word [eax + ecx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 8]
mov eax, dword [eax + ecx]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
cmp eax, 0x10
jb 0x403567
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4035ce
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4035de
push ecx
push esi
call fcn.0042b1ef
mov ecx, dword [esp + 0x10]
add esp, 8
jmp 0x403567
call fcn.00453c95
int3