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

Disassembly:
push 0xffffffffffffffff
push 0x492130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov ecx, dword [esp + 0x6c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp], eax
je 0x406f10
mov edx, dword [esp + 0x80]
lea eax, [esp]
push eax
mov eax, dword [esp + 0x80]
push edx
lea edx, [esp + 0x44]
push eax
mov eax, dword [esp + 0x74]
push edx
push ecx
push eax
call fcn.00420940
add esp, 0x18
cmp eax, 1
jne 0x406f10
mov edx, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov eax, dword [ebp]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
sub ebx, eax
sub ecx, esi
sub edx, 0
mov dword [esp + 0x78], ebx
mov dword [esp + 0x90], ecx
mov edi, eax
je 0x406e72
dec edx
je 0x406d9a
dec edx
jne 0x406f02
mov eax, dword [esp + 0x7c]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 8]
cmp ebp, ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], eax
mov dword [esp + 0x8c], eax
jg 0x406c64
mov eax, ebx
mov ebx, ebp
sub eax, ebp
mov dword [esp + 0x78], ebx
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov edx, dword [esp + 0x7c]
cmp edx, ecx
jg 0x406c82
mov eax, ecx
mov ecx, dword [esp + 0x7c]
sub eax, edx
mov dword [esp + 0x90], ecx
cdq
sub eax, edx
sar eax, 1
add esi, eax
cmp ebp, ebx
jg 0x406c8c
cmp dword [esp + 0x7c], ecx
jle 0x406cfd
fild dword [esp + 0x80]
fild dword [esp + 0x78]
fdiv st(1)
fild dword [esp + 0x7c]
fst qword [esp + 0x1c]
fild dword [esp + 0x90]
fdiv st(1)
fstp qword [esp + 0x14]
fstp st(0)
fcom qword [esp + 0x14]
fnstsw ax
test ah, 1
jne 0x406cc1
fstp st(0)
fld qword [esp + 0x14]
fxch st(1)
fmul st(1)
call fcn.00476a78
fld qword [esp + 0x1c]
fmul st(1)
mov ebp, eax
call fcn.00476a78
mov ecx, eax
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x8c], ecx
cdq
fstp st(0)
sub eax, edx
sar eax, 1
add edi, eax
mov eax, dword [esp + 0x90]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x8c]
push edx
push 0xcc0020
push eax
push ebp
push esi
lea ecx, [esp + 0x60]
push edi
push ecx
call fcn.00420eb0
mov ebx, dword [esp + 0xa4]
add esp, 0x1c
test ebx, ebx
je 0x406f02
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x15f3f80
mov edx, dword [esp + 0x8c]
add ebp, edi
add edx, esi
mov dword [esp + 0x6c], 2
push edx
push ebp
push esi
push edi
call dword [0x496084]
push eax
lea ecx, [esp + 0x18]
call fcn.0048df76
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x14]
push 4
neg eax
sbb eax, eax
and eax, ebp
push eax
push ecx
push ecx
call dword [0x496088]
mov dword [esp + 0x14], 0x15f3f64
mov dword [esp + 0x6c], 3
lea ecx, [esp + 0x14]
jmp 0x406efd
add ecx, esi
cmp esi, ecx
jge 0x406e5e
mov ecx, dword [esp + 0x54]
mov edi, eax
lea edx, [eax + ebx]
cmp edi, edx
jge 0x406e44
mov eax, dword [esp + 0x58]
add ecx, edi
add eax, esi
push eax
push ecx
push esi
lea ecx, [esp + 0x48]
push edi
push ecx
call dword [0x496494]
mov edx, dword [esp + 0x84]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [0x49648c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x3c], edx
call dword [0x49644c]
test eax, eax
jne 0x406e30
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push ecx
push 0xcc0020
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push edi
push edx
call fcn.00420eb0
add esp, 0x1c
mov eax, dword [ebp]
mov ecx, dword [esp + 0x54]
add edi, ecx
lea edx, [eax + ebx]
cmp edi, edx
jl 0x406db5
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x90]
add esi, edx
mov edx, dword [ebp + 4]
add edx, edi
cmp esi, edx
jl 0x406da8
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x406f02
jmp 0x406efd
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
push 0xcc0020
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push edi
push ecx
call fcn.00420eb0
mov ebx, dword [esp + 0xa4]
xor eax, eax
add esp, 0x1c
cmp ebx, eax
je 0x406f02
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x15f3f80
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
add ecx, edi
lea eax, [edx + esi]
push eax
push ecx
push esi
push edi
call dword [0x496084]
push eax
lea ecx, [esp + 0x18]
call fcn.0048df76
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x14]
push 4
neg eax
sbb eax, eax
and eax, ebp
push eax
push ecx
push ecx
call dword [0x496088]
mov dword [esp + 0x14], 0x15f3f64
mov dword [esp + 0x6c], 1
lea ecx, [esp + 0x14]
call fcn.0048dfcd
lea edx, [esp + 0x4c]
push edx
call fcn.00421370
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret