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

Disassembly:
sub esp, 0x34
movsd xmm0, qword [esp + 0x40]
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, edx
movsd qword [esp + 0x4c], xmm0
mov ebx, dword [esp + 0x50]
mov edx, ecx
mov ecx, dword [esp + 0x4c]
mov eax, ecx
or eax, ebx
mov dword [esp + 0x28], edx
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], ecx
jne 0x4099fe
mov edi, dword [esp + 0x4c]
xor ecx, ecx
test edi, edi
mov eax, ebp
setne cl
sub eax, esi
inc ecx
sar eax, 1
add ecx, edi
cmp eax, ecx
jl 0x409e80
mov eax, 0x30
mov word [esi], ax
add esi, 2
test edi, edi
je 0x4099eb
mov eax, 0x2e
mov dword [esp + 0x50], 0x30
mov word [esi], ax
mov edx, edi
lea eax, [esp + 0x50]
add esi, 2
push eax
mov ecx, esi
call fcn.00409ea0
mov edx, dword [esp + 0x30]
lea esi, [esi + edi*2]
add esp, 4
mov dword [edx], esi
mov eax, edx
mov dword [edx + 4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, ebx
mov edx, 0x30
and eax, 0xfffff
shr ebx, 0x14
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x409a22
mov dword [esp + 0x14], 0xfffffbce
jmp 0x409b28
add ebx, 0xfffffbcd
mov dword [esp + 0x18], ecx
or eax, 0x100000
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x50], 0
cmp ebx, 0xffffffcc
jl 0x409b28
test ebx, ebx
jns 0x409a55
xor ecx, ecx
lea eax, [ecx + 0x78]
lea edi, [ecx + 1]
jmp 0x409a93
lea ecx, [ebx + 0xf]
shr ecx, 4
mov eax, ecx
mov dword [esp + 0x30], ecx
imul ecx, ecx, 0x134410
shl eax, 4
add eax, 0x78
mov dword [esp + 0x34], eax
mov eax, 0x38e38e39
shr ecx, 0x12
add ecx, 0x19
mul ecx
mov edi, edx
shr edi, 1
sub edi, 1
js 0x409b23
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
sub eax, ebx
mov ebx, dword [esp + 0x1c]
add eax, 8
mov dword [esp + 0x34], eax
movzx eax, word [ecx*2 + 0x428c00]
shld ebx, edx, 8
shl edx, 8
add eax, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], edx
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x428d58]
mov dword [esp + 0x28], eax
nop dword [eax + eax]
push ebx
push edx
mov edx, dword [esp + 0x3c]
mov ecx, eax
call fcn.00408560
add esp, 8
mov ecx, eax
cmp byte [esp + 0x50], 0
je 0x409cb6
mov eax, ebp
sub eax, esi
and eax, 0xfffffffe
cmp eax, 0x12
jl 0x409e80
mov edx, esi
call fcn.00409080
add esi, 0x12
mov cl, byte [esp + 0x50]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
sub eax, 0x18
sub edi, 1
mov dword [esp + 0x28], eax
jns 0x409ad0
test cl, cl
jne 0x409b36
mov edx, 0x30
cmp esi, ebp
je 0x409e80
mov word [esi], dx
add esi, 2
mov edi, dword [esp + 0x4c]
mov eax, 0x2e
test edi, edi
je 0x409b51
cmp esi, ebp
je 0x409e80
mov word [esi], ax
add esi, 2
mov ecx, dword [esp + 0x14]
test ecx, ecx
jns 0x409e45
mov eax, ecx
xor ebx, ebx
cdq
and edx, 0xf
add eax, edx
sar eax, 4
neg eax
mov dword [esp + 0x50], eax
mov eax, 0x38e38e39
mul edi
mov eax, edx
mov edx, dword [esp + 0x50]
shr eax, 1
mov dword [esp + 0x38], eax
inc eax
mov dword [esp + 0x34], eax
movzx edx, byte [edx + 0x442830]
mov dword [esp + 0x28], edx
cmp eax, edx
jbe 0x409e45
test edx, edx
je 0x409bd9
mov ebx, edx
mov eax, ebp
sub eax, esi
sar eax, 1
lea edx, [ebx + ebx*8]
cmp eax, edx
jl 0x409e80
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x30
push eax
mov ecx, esi
call fcn.00409ea0
mov ecx, dword [esp + 0x18]
lea eax, [ebx + ebx*8]
lea esi, [esi + eax*2]
add esp, 4
mov eax, dword [esp + 0x34]
mov edx, ebx
cmp ebx, eax
jae 0x409e6b
mov eax, dword [esp + 0x50]
movzx eax, word [eax*2 + 0x428c80]
sub eax, edx
lea edx, [eax + ebx]
mov eax, ebp
sub eax, esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], eax
lea eax, [edx + edx*2]
lea eax, [eax*8 + 0x430270]
mov dword [esp + 0x28], eax
nop dword [eax]
mov ebp, dword [esp + 0x50]
movzx eax, word [ebp*2 + 0x428c82]
mov ebp, dword [esp + 0x48]
cmp edx, eax
jae 0x409e40
mov eax, dword [esp + 0x1c]
mov edx, 8
sub edx, dword [esp + 0x50]
shl edx, 4
sub edx, ecx
mov ecx, dword [esp + 0x18]
shld eax, ecx, 8
shl ecx, 8
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00408560
add esp, 8
mov edx, eax
mov dword [esp + 0x20], edx
cmp ebx, dword [esp + 0x38]
jae 0x409cf2
mov ecx, dword [esp + 0x24]
and ecx, 0xfffffffe
cmp ecx, 0x12
jl 0x409e80
mov edx, esi
mov ecx, eax
call fcn.00409080
mov edx, dword [esp + 0x30]
inc ebx
sub dword [esp + 0x24], 0x12
inc edx
add dword [esp + 0x28], 0x18
add esi, 0x12
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
cmp ebx, dword [esp + 0x34]
jb 0x409c10
mov eax, dword [esp + 0x2c]
mov dword [eax], esi
mov dword [eax + 4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
test ecx, ecx
je 0x409b07
call fcn.00408430
mov ebx, eax
mov eax, ebp
sub eax, esi
sar eax, 1
cmp eax, ebx
jl 0x409e80
mov edx, ecx
mov ecx, ebx
push esi
call fcn.00409f00
mov cl, 1
lea esi, [esi + ebx*2]
mov ebx, dword [esp + 0x34]
add esp, 4
mov byte [esp + 0x50], cl
jmp 0x409b0b
lea eax, [ebx + ebx*8]
mov ecx, edi
sub ecx, eax
mov ebx, 9
mov dword [esp + 0x50], ecx
xor ecx, ecx
sub ebx, dword [esp + 0x50]
je 0x409d79
nop word [eax + eax]
mov ecx, dword [esp + 0x20]
mov eax, 0xcccccccd
mul edx
shr edx, 3
mov dword [esp + 0x20], edx
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
sub ebx, 1
jne 0x409d10
cmp ecx, 5
jne 0x409d79
mov edx, dword [esp + 0x14]
not edx
sub edx, edi
test edx, edx
jle 0x409d72
cmp edx, 0x3c
jge 0x409d6b
xor ecx, ecx
xor eax, eax
bts ecx, edx
cmp edx, 0x20
cmovae eax, ecx
xor ecx, eax
cmp edx, 0x40
cmovae eax, ecx
add ecx, 0xffffffff
adc eax, 0xffffffff
and ecx, dword [esp + 0x18]
and eax, dword [esp + 0x1c]
or ecx, eax
je 0x409d72
mov edi, 1
jmp 0x409d84
mov edi, 2
jmp 0x409d84
mov eax, 5
cmp eax, ecx
sbb edi, edi
neg edi
mov ebx, dword [esp + 0x50]
test ebx, ebx
je 0x409dac
mov eax, ebp
sub eax, esi
sar eax, 1
cmp eax, ebx
jl 0x409e80
mov edx, dword [esp + 0x20]
mov ecx, ebx
push esi
call fcn.00409100
add esp, 4
lea esi, [esi + ebx*2]
test edi, edi
je 0x409e6b
mov ebx, dword [esp + 0x3c]
mov ecx, esi
mov edx, ebp
cmp esi, ebx
je 0x409de4
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, 0x2e
jne 0x409dd0
mov edx, ecx
jmp 0x409de0
cmp eax, 0x39
jne 0x409e1e
mov eax, 0x30
mov word [ecx], ax
lea edi, [eax - 0x2f]
cmp ecx, ebx
jne 0x409dc0
mov eax, 0x31
mov word [ecx], ax
mov eax, 0x30
cmp edx, ebp
je 0x409dfb
mov dword [edx], 0x2e0030
cmp esi, ebp
je 0x409e80
mov word [esi], ax
add esi, 2
mov eax, dword [esp + 0x2c]
mov dword [eax], esi
mov dword [eax + 4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
cmp edi, 1
je 0x409e27
test al, 1
je 0x409e6b
inc eax
mov word [ecx], ax
mov eax, dword [esp + 0x2c]
mov dword [eax], esi
mov dword [eax + 4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea eax, [ebx + ebx*8]
sub edi, eax
mov eax, ebp
sub eax, esi
sar eax, 1
cmp eax, edi
jl 0x409e80
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0x30
push eax
mov edx, edi
mov ecx, esi
call fcn.00409ea0
add esp, 4
lea esi, [esi + edi*2]
mov eax, dword [esp + 0x2c]
mov dword [eax], esi
mov dword [eax + 4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax], ebp
pop ebp
mov dword [eax + 4], 0x84
pop ebx
add esp, 0x34
ret