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

Disassembly:
sub esp, 0x78
mov eax, dword [0x4320d0]
xor eax, esp
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push esi
push edi
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x84]
dec eax
mov dword [esp + 0x28], ecx
cmp eax, 0xe
ja case.0x406f96.5
jmp dword [eax*4 + 0x407724]
mov eax, dword [ecx]
mov esi, dword [edx]
mov edx, eax
mov dword [esp + 0x38], eax
shr eax, 0x1f
mov dword [esp + 0x20], eax
test al, al
je 0x406fb8
neg edx
mov dword [esp + 0x38], edx
mov eax, edx
mov dword [esp + 0x28], 0
or eax, 1
bsr ecx, eax
mov eax, edx
mov edx, dword [esi + 8]
mov dword [esp + 0x78], edx
add eax, dword [ecx*8 + 0x429740]
mov eax, 0
adc eax, dword [ecx*8 + 0x429744]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
movzx eax, cl
add eax, edx
mov edx, dword [esp + 0x28]
add edx, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], edx
cmp eax, edx
mov edx, dword [esp + 0x38]
jb 0x407057
mov edx, dword [esp + 0x20]
cmp edx, eax
cmova edx, eax
mov eax, edx
mov dword [esp + 0x20], edx
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x78]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x38]
je 0x407054
test cl, cl
je 0x407031
mov byte [eax], 0x2d
inc eax
push dword [esp + 0x28]
push edx
push eax
call fcn.00405270
add esp, 0xc
mov dword [edi], esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
mov eax, dword [esi + 0xc]
test cl, cl
je 0x40707c
mov ecx, dword [esp + 0x78]
inc ecx
cmp ecx, eax
jbe 0x40706f
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
mov byte [ecx + eax], 0x2d
inc dword [esi + 8]
push dword [esp + 0x28]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.00405270
add esp, 0xc
lea eax, [esp + 0x70]
push edx
push eax
mov ecx, esi
call fcn.004034c0
mov dword [edi], esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
mov esi, dword [edx]
mov edx, dword [ecx]
mov eax, edx
or eax, 1
mov dword [esp + 0x28], edx
bsr ecx, eax
mov eax, edx
mov dword [esp + 0x78], 0
xor edx, edx
add eax, dword [ecx*8 + 0x429740]
mov eax, dword [esi + 8]
adc edx, dword [ecx*8 + 0x429744]
mov dword [esp + 0x78], eax
lea ecx, [eax + edx]
cmp dword [esi + 0xc], ecx
jb 0x40711c
cmovb ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov dword [esi + 8], ecx
add eax, dword [esp + 0x78]
je 0x40711c
push edx
push dword [esp + 0x2c]
push eax
call fcn.00405270
add esp, 0xc
mov dword [edi], esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
push edx
push dword [esp + 0x2c]
jmp 0x407081
push dword [ecx + 4]
push dword [ecx]
push dword [edx]
push edi
call fcn.00408650
add esp, 0x10
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
mov eax, dword [ecx + 4]
mov esi, dword [edx]
mov edx, dword [ecx]
mov ecx, edx
mov dword [esp + 0x28], eax
or ecx, 1
bsr eax, eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x20], 0
je 0x40716f
add eax, 0x20
jmp 0x407172
bsr eax, ecx
xor eax, 0x3f
xor eax, 0x3f
movzx ecx, byte [eax + 0x429658]
mov eax, dword [esp + 0x28]
cmp eax, dword [ecx*8 + 0x42969c]
ja 0x40719e
jb 0x407197
cmp edx, dword [ecx*8 + 0x429698]
jae 0x40719e
mov edx, 1
jmp 0x4071a0
xor edx, edx
sub ecx, edx
mov edx, dword [esi + 8]
mov dword [esp + 0x20], edx
add edx, ecx
cmp dword [esi + 0xc], edx
jb 0x4071ee
cmovb edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov dword [esi + 8], edx
add eax, dword [esp + 0x20]
je 0x4071ea
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x80]
push eax
call fcn.004052d0
add esp, 0x10
mov dword [edi], esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
mov eax, dword [esp + 0x28]
push ecx
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x68]
push eax
call fcn.004052d0
add esp, 0x10
lea eax, [esp + 0x5c]
jmp 0x407092
mov al, byte [ecx]
and dword [esp + 0x50], 0xffffff80
and byte [esp + 0x54], 0xfc
push ecx
mov byte [esp + 0x2c], al
mov eax, esp
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xffffffff
mov byte [esp + 0x50], 0
mov dword [esp + 0x59], 0x20
mov byte [esp + 0x5d], 1
mov dword [eax], 0
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x30]
push dword [edx]
push edi
call fcn.00408890
add esp, 0x14
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
mov esi, dword [edx]
mov al, byte [ecx]
mov byte [esp + 0x1b], al
mov ecx, dword [esi + 8]
inc ecx
cmp ecx, dword [esi + 0xc]
jbe 0x407287
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dl, byte [esp + 0x1b]
mov byte [ecx + eax], dl
mov eax, edi
inc dword [esi + 8]
mov dword [edi], esi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
movss xmm0, dword [ecx]
xorps xmm1, xmm1
mov esi, dword [edx]
movss dword [esp + 0x28], xmm0
mov eax, dword [esp + 0x28]
push ecx
movss dword [esp + 0x7c], xmm0
mov dword [esp + 0x24], eax
movups xmmword [esp + 0x64], xmm1
movups xmmword [esp + 0xc], xmm1
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdsign]
movss xmm0, dword [esp + 0x7c]
add esp, 4
test eax, eax
je 0x40730b
xorps xmm0, xmmword [0x429ec0]
mov dword [esp + 0x10], 1
movups xmm1, xmmword [esp + 8]
movss dword [esp + 0x28], xmm0
movups xmmword [esp + 0x60], xmm1
mov eax, dword [esp + 0x20]
and eax, 0x7f800000
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x2000
mov dword [esp + 0x58], pe_nt_image_headers32
cmp eax, 0x7f800000
jne 0x40737d
movups xmm0, xmmword [esp + 0x44]
lea eax, [esp + 8]
fld dword [esp + 0x28]
push eax
sub esp, 0x18
mov eax, esp
push ecx
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x74]
movq qword [eax + 0x10], xmm0
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__fdclass
add esp, 4
jmp 0x407585
push ecx
movss dword [esp], xmm0
call fcn.00413260
movups xmm0, xmmword [esp + 0x64]
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
push 0
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
push edi
call fcn.00403a80
add esp, 0x24
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
movsd xmm0, qword [ecx]
sub esp, 8
mov esi, dword [edx]
xorps xmm1, xmm1
movsd qword [esp + 0x7c], xmm0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
movsd qword [esp + 0x24], xmm0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], eax
movups xmmword [esp + 0x68], xmm1
movups xmmword [esp + 0x10], xmm1
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__dsign]
movsd xmm0, qword [esp + 0x24]
add esp, 8
test eax, eax
je 0x407435
xorps xmm0, xmmword [0x429eb0]
mov dword [esp + 0x10], 1
movups xmm1, xmmword [esp + 8]
movsd qword [esp + 0x74], xmm0
movups xmmword [esp + 0x60], xmm1
mov eax, dword [esp + 0x28]
and eax, 0x7ff00000
mov dword [esp + 0x44], 0
cmp eax, 0x7ff00000
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0
lea eax, [esp + 8]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x2000
mov dword [esp + 0x58], pe_nt_image_headers32
jne 0x4075ad
movups xmm0, xmmword [esp + 0x44]
push eax
fld qword [esp + 0x78]
sub esp, 0x18
mov eax, esp
sub esp, 8
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x78]
movq qword [eax + 0x10], xmm0
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__dclass
jmp 0x407582
movsd xmm0, qword [ecx]
sub esp, 8
mov esi, dword [edx]
xorps xmm1, xmm1
movsd qword [esp + 0x7c], xmm0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
movsd qword [esp + 0x24], xmm0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], eax
movups xmmword [esp + 0x68], xmm1
movups xmmword [esp + 0x10], xmm1
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__ldsign]
movsd xmm0, qword [esp + 0x24]
add esp, 8
test eax, eax
je 0x407516
xorps xmm0, xmmword [0x429eb0]
mov dword [esp + 0x10], 1
movups xmm1, xmmword [esp + 8]
movsd qword [esp + 0x74], xmm0
movups xmmword [esp + 0x60], xmm1
mov eax, dword [esp + 0x28]
and eax, 0x7ff00000
mov dword [esp + 0x44], 0
cmp eax, 0x7ff00000
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0
lea eax, [esp + 8]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0x2000
mov dword [esp + 0x58], pe_nt_image_headers32
jne 0x4075ad
movups xmm0, xmmword [esp + 0x44]
push eax
fld qword [esp + 0x78]
sub esp, 0x18
mov eax, esp
sub esp, 8
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x78]
movq qword [eax + 0x10], xmm0
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__ldclass
add esp, 8
cmp ax, 1
sete al
movzx eax, al
push eax
push esi
push edi
call fcn.0040a0c0
add esp, 0x28
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
sub esp, 8
movsd qword [esp], xmm0
push eax
call fcn.004135d0
add esp, 0xc
movups xmm0, xmmword [eax]
push 0
sub esp, 0x10
mov eax, esp
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [esp + 0x74]
movups xmmword [eax], xmm0
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push edi
call fcn.00403fd0
add esp, 0x24
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
mov eax, dword [ecx]
mov esi, dword [edx]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40762a
push str.string_pointer_is_null
call fcn.00416770
add esp, 4
mov dword [edi], esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
mov ecx, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407630
mov eax, dword [esp + 0x28]
sub ecx, edx
add ecx, eax
push ecx
jmp 0x407093
mov eax, dword [esp + 0x28]
mov ecx, dword [ecx]
mov esi, dword [edx]
mov eax, dword [eax + 4]
add eax, ecx
push eax
push ecx
jmp 0x407094
and dword [esp + 0x50], 0xffffff80
lea eax, [esp + 0x44]
and byte [esp + 0x54], 0xfc
push eax
push dword [ecx]
mov dword [esp + 0x4c], 0
push dword [edx]
mov dword [esp + 0x54], 0xffffffff
push edi
mov byte [esp + 0x5c], 0
mov dword [esp + 0x65], 0x20
mov byte [esp + 0x69], 1
call fcn.0040a330
add esp, 0x10
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
mov eax, dword [edx]
movups xmm0, xmmword [edx + 8]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
movups xmmword [esp + 0x4c], xmm0
push dword [eax]
call ecx
mov eax, dword [esp + 0x48]
add esp, 0xc
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret
mov eax, dword [edx]
mov ecx, dword [esp + 0x7c]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00424429
add esp, 0x78
ret