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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x4c0008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0x406432
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d890
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x4b8], eax
test edi, edi
je 0x4069b1
mov ebx, edi
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x406450
sub ebx, ecx
je 0x4069b1
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x406476
push eax
call fcn.004793d4
add esp, 4
mov dword [esi + 0x5c], 0
sub esp, 8
mov edx, ebx
mov ecx, edi
call fcn.00406390
add esp, 8
mov dword [esi + 0x5c], eax
test eax, eax
je 0x4069b1
cmp dword [esi + 0x14], 1
jne 0x4065aa
lea ecx, [ebp - 0x28]
mov edx, eax
push ecx
push 0x100
push ecx
mov ecx, esi
call fcn.00405100
add esp, 0xc
test eax, eax
jne 0x4064c3
mov dword [esi + 0x58], 0xffffffff
lea edi, [eax - 3]
jmp 0x406987
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x58], edx
test edx, edx
jns 0x4064d7
mov edi, 0xfffffffd
jmp 0x406987
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4064ed
cmp edx, dword [esi + 0x10]
jae 0x4064ed
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edx*4]
add eax, dword [ecx]
jmp 0x4064ef
xor eax, eax
push ecx
lea ecx, [ebp - 0x4b4]
push ecx
push eax
mov ecx, esi
call fcn.00404d30
add esp, 0xc
test eax, eax
jne 0x40650e
lea edi, [eax - 3]
jmp 0x406987
mov eax, dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x488]
mov dword [esi + 0x68], eax
mov eax, dword [ebp - 0x484]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x494]
mov dword [esi + 0x70], eax
mov eax, dword [ebp - 0x4ac]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 0x474]
mov dword [esi + 0x6c], ecx
mov ecx, dword [ebp - 0x480]
mov dword [esi + 0xa0], eax
mov ax, word [ebp - 0x49e]
mov dword [esi + 0x64], ecx
mov ecx, dword [ebp - 0x4a8]
mov dword [esi + 0x7c], ecx
mov ecx, dword [ebp - 0x470]
mov word [esi + 0xa8], ax
mov eax, dword [ebp - 0x478]
mov dword [esi + 0xa4], ecx
mov ecx, dword [ebp - 0x498]
mov dword [esi + 0x4e008], eax
mov eax, dword [ebp - 0x49c]
mov dword [esi + 0x4e010], eax
mov dword [esi + 0x4e014], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d890
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
xorps xmm0, xmm0
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 4]
and edx, 0xf
mov dword [esi + 0x58], eax
mov eax, dword [esi]
mov dword [esi + 0x78], eax
mov dword [esi + 0xa0], eax
mov eax, edx
mov dword [esi + 0x68], 0
neg eax
mov dword [esi + 0x6c], 0
mov dword [esi + 0x60], 0
sbb eax, eax
mov dword [esi + 0x64], 0
and eax, 8
mov dword [esi + 0x70], 0
mov dword [esi + 0x7c], ecx
mov dword [esi + 0xa4], ecx
movups xmmword [esi + 0x80], xmm0
mov dword [ebp - 0x4c4], edx
movq qword [esi + 0x90], xmm0
mov dword [esi + 0x98], 0
mov word [esi + 0x9c], 0
mov word [esi + 0xa8], ax
mov dword [esi + 0x4e008], 0
mov edi, dword [esi + 0x20]
mov eax, edi
or eax, dword [esi + 0x24]
jne 0x406643
xor edi, edi
jmp 0x40664e
mov eax, dword [esi]
lea ecx, [edi - 1]
and eax, ecx
sub edi, eax
and edi, ecx
cmp dword [esi + 0x48], 0
je 0x406982
cmp dword [esi + 0x14], 2
jne 0x406982
test dword [esi + 0x50], 0x400
je 0x406675
mov edi, 0xfffffffb
jmp 0x406987
push dword [esi + 0x7c]
mov edx, edi
mov ecx, esi
push dword [esi + 0x78]
call fcn.00405ce0
add esp, 8
test eax, eax
jne 0x406693
lea edi, [eax - 7]
jmp 0x406987
mov ecx, edi
mov eax, 0
add ecx, dword [ebp - 0x28]
push 0
adc eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], ecx
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
call fcn.0047936c
add esp, 4
mov dword [esi + 0x4e010], eax
mov dword [ebp - 0x2c], eax
mov ecx, edx
lea eax, [ebp - 0x2c]
mov dword [esi + 0x4e014], edx
mov dword [ebp - 0x28], ecx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00478289
add esp, 8
test eax, eax
je 0x4066f4
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x4b8], eax
jmp 0x40672c
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x58]
shl ecx, 6
add ecx, dword [ebp - 0x54]
sar eax, 1
shl ecx, 5
add ecx, eax
movzx eax, cx
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp - 0x48]
add eax, 0x301
shl ecx, 4
add eax, ecx
shl eax, 5
add eax, dword [ebp - 0x4c]
movzx eax, ax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x4c0], 0
ja 0x406745
cmp dword [ebp - 0x4bc], 0xffffffff
jae 0x406745
xor eax, eax
lea edx, [ebp - 0x20]
jmp 0x406787
lea edx, [ebp - 0x34]
mov ecx, dword [edx]
mov eax, ecx
mov edx, dword [edx + 4]
shr eax, 8
mov byte [ebp - 0x1f], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x1e], al
mov eax, edx
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x20], cl
shr ecx, 0x18
mov byte [ebp - 0x1c], dl
shr edx, 0x18
mov byte [ebp - 0x1a], al
mov eax, 8
mov byte [ebp - 0x19], dl
lea edx, [ebp - 0x18]
mov byte [ebp - 0x1d], cl
movzx ecx, word [esi + 0xa8]
xorps xmm0, xmm0
movups xmmword [esi + 0x80], xmm0
mov byte [ebp - 0x22], al
movq qword [esi + 0x90], xmm0
mov dword [esi + 0x98], 0
mov word [esi + 0x9c], 0
shr eax, 8
mov byte [ebp - 0x21], al
lea eax, [ebp - 0x24]
sub edx, eax
mov dword [esi + 0x80], 0x4034b50
lea eax, [esi + 0x80]
mov byte [esi + 0x88], cl
mov ax, cx
mov word [esi + 0x85], 0x800
neg ax
mov byte [esi + 0x87], 8
mov dword [esi + 0x8e], 0
sbb al, al
mov dword [ebp - 0x4bc], edx
and al, 0x14
shr ecx, 8
mov byte [esi + 0x84], al
lea eax, [esi + 0x80]
mov byte [eax + 9], cl
mov ecx, dword [ebp - 0x4b8]
mov byte [eax + 0xa], cl
shr ecx, 8
mov byte [eax + 0xb], cl
mov ecx, dword [ebp - 0x28]
mov byte [eax + 0xc], cl
shr ecx, 8
mov byte [eax + 0xd], cl
lea ecx, [esi + 0x80]
mov dword [eax + 0x12], 0
mov dword [eax + 0x16], 0
mov byte [eax + 0x1a], bl
mov eax, ebx
shr eax, 8
mov byte [ecx + 0x1b], al
mov eax, edx
shr eax, 8
mov byte [ecx + 0x1d], al
mov eax, edi
mov byte [ecx + 0x1c], dl
mov edx, 0
add eax, dword [esi + 0x78]
push 0x1e
adc edx, dword [esi + 0x7c]
push ecx
push edx
push eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], edx
push dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
mov word [ebp - 0x24], 1
call eax
add esp, 0x14
cmp eax, 0x1e
je 0x406896
mov edi, 0xfffffff9
jmp 0x406987
push ebx
push dword [esi + 0x5c]
lea eax, [edi + 0x1e]
add dword [esi + 0x78], eax
adc dword [esi + 0x7c], 0
push dword [esi + 0x7c]
mov eax, dword [esi + 0x3c]
push dword [esi + 0x78]
push dword [esi + 0x44]
call eax
add esp, 0x14
cmp eax, ebx
je 0x4068c3
mov edi, 0xfffffff8
jmp 0x406987
add dword [esi + 0x78], ebx
lea eax, [ebp - 0x24]
mov edi, dword [ebp - 0x4bc]
adc dword [esi + 0x7c], 0
push edi
push eax
push dword [esi + 0x7c]
mov eax, dword [esi + 0x3c]
push dword [esi + 0x78]
push dword [esi + 0x44]
call eax
add esp, 0x14
cmp eax, edi
je 0x4068f4
mov edi, 0xfffffff8
jmp 0x406987
add edi, dword [esi + 0x78]
mov eax, 0
mov ecx, dword [ebp - 0x4c4]
adc eax, dword [esi + 0x7c]
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], eax
test ecx, ecx
je 0x406597
mov dword [esi + 0xb8], edi
lea edx, [esi + 0xb0]
mov edi, 0xa
mov dword [esi + 0xbc], eax
cmp ecx, edi
mov dword [edx], esi
mov eax, ecx
mov dword [esi + 0xc0], 0
cmova eax, edi
mov dword [esi + 0xc4], 0
mov edi, 3
cmp edi, ecx
sbb ecx, ecx
and ecx, 0xffffc000
add ecx, 0x4000
or ecx, dword [eax*4 + 0x4b7e60]
push ecx
push edx
lea ecx, [esi + 0xc8]
call fcn.00404a20
add esp, 8
test eax, eax
je 0x406597
mov edi, 0xfffffff7
jmp 0x406987
mov edi, 0xfffffffc
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x40699e
push eax
call fcn.004793d4
add esp, 4
mov dword [esi + 0x5c], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d890
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, 0xfffffffe
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d890
mov esp, ebp
pop ebp
ret