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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x44d008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0x406782
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004208c0
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 0x406d01
mov ebx, edi
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4067a0
sub ebx, ecx
je 0x406d01
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4067c6
push eax
call fcn.004271c7
add esp, 4
mov dword [esi + 0x5c], 0
sub esp, 8
mov edx, ebx
mov ecx, edi
call fcn.004066e0
add esp, 8
mov dword [esi + 0x5c], eax
test eax, eax
je 0x406d01
cmp dword [esi + 0x14], 1
jne 0x4068fa
lea ecx, [ebp - 0x28]
mov edx, eax
push ecx
push pe_nt_image_headers32
push ecx
mov ecx, esi
call fcn.00405450
add esp, 0xc
test eax, eax
jne 0x406813
mov dword [esi + 0x58], 0xffffffff
lea edi, [eax - 3]
jmp 0x406cd7
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x58], edx
test edx, edx
jns 0x406827
mov edi, 0xfffffffd
jmp 0x406cd7
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x40683d
cmp edx, dword [esi + 0x10]
jae 0x40683d
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edx*4]
add eax, dword [ecx]
jmp 0x40683f
xor eax, eax
push ecx
lea ecx, [ebp - 0x4b4]
push ecx
push eax
mov ecx, esi
call fcn.00405080
add esp, 0xc
test eax, eax
jne 0x40685e
lea edi, [eax - 3]
jmp 0x406cd7
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.004208c0
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 0x406993
xor edi, edi
jmp 0x40699e
mov eax, dword [esi]
lea ecx, [edi - 1]
and eax, ecx
sub edi, eax
and edi, ecx
cmp dword [esi + 0x48], 0
je 0x406cd2
cmp dword [esi + 0x14], 2
jne 0x406cd2
test dword [esi + 0x50], 0x400
je 0x4069c5
mov edi, 0xfffffffb
jmp 0x406cd7
push dword [esi + 0x7c]
mov edx, edi
mov ecx, esi
push dword [esi + 0x78]
call fcn.00406030
add esp, 8
test eax, eax
jne 0x4069e3
lea edi, [eax - 7]
jmp 0x406cd7
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.0042715f
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.004265bb
add esp, 8
test eax, eax
je 0x406a44
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x4b8], eax
jmp 0x406a7c
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 0x406a95
cmp dword [ebp - 0x4bc], 0xffffffff
jae 0x406a95
xor eax, eax
lea edx, [ebp - 0x20]
jmp 0x406ad7
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 0x406be6
mov edi, 0xfffffff9
jmp 0x406cd7
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 0x406c13
mov edi, 0xfffffff8
jmp 0x406cd7
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 0x406c44
mov edi, 0xfffffff8
jmp 0x406cd7
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 0x4068e7
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 + 0x447b38]
push ecx
push edx
lea ecx, [esi + 0xc8]
call fcn.00404e20
add esp, 8
test eax, eax
je 0x4068e7
mov edi, 0xfffffff7
jmp 0x406cd7
mov edi, 0xfffffffc
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x406cee
push eax
call fcn.004271c7
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.004208c0
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.004208c0
mov esp, ebp
pop ebp
ret