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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
mov eax, dword [0x4464f4]
xor eax, esp
mov dword [esp + 0xb0], eax
fldz
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
fst qword [esi]
mov dword [esp + 0x90], eax
fld qword [0x43f978]
xor eax, eax
fstp qword [esi + 8]
push edi
mov dword [esp + 0x6c], ebx
fst qword [esi + 0x10]
mov dword [esp + 0x48], eax
fst qword [esp + 0x88]
mov dword [esi + 0x18], eax
fstp qword [esp + 0x80]
mov dword [esi + 0x1c], eax
call fcn.00401226
test eax, eax
je 0x407e74
push ebx
call dword [0x4844f0]
push ebx
mov dword [esp + 0x6c], eax
call dword [0x484504]
cmp dword [esp + 0x68], 0xffffffff
mov edi, eax
mov dword [esp + 0x54], edi
jne 0x407e8d
test edi, edi
je 0x407e5d
movsx ecx, word [edi + 0xa]
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.0040cbf0
add esp, 0xc
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
call dword [0x447c18]
cmp eax, 0xffffffff
mov dword [esp + 0x7c], eax
jne 0x407eba
push 0x43fea4
call fcn.0040134d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0040d67d
mov esp, ebp
pop ebp
ret 0xc
push 0x43fe78
call fcn.0040134d
add esp, 4
mov dword [0x457c74], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0040d67d
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
jne 0x407e16
cmp dword [esi + 0x44], edi
je 0x407ea7
push ebx
push 0x43fe20
mov dword [esi + 0x44], edi
call fcn.0040134d
add esp, 8
push ebx
call dword [0x4844f0]
mov dword [esp + 0xb0], eax
jmp 0x407e24
mov dl, byte [esi + 0x34]
xor eax, eax
cmp dword [esi + 0x48], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov al, byte [esi + 0x38]
mov byte [esp + 0x70], dl
mov byte [esp + 0x71], al
je 0x407edd
mov byte [esp + 0x72], 2
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call fcn.00401316
mov edx, dword [esi + 0x28]
push edx
call fcn.0040d16e
mov ecx, dword [0x457c70]
mov ebx, eax
add esp, 4
test ecx, ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x50], ebx
je 0x407f72
mov edi, ecx
lea edx, [edi + 1]
mov edi, edi
mov al, byte [edi]
add edi, 1
test al, al
jne 0x407f10
mov eax, dword [esi + 0x28]
sub edi, edx
cdq
idiv edi
xor ebx, ebx
test eax, eax
mov dword [esp + 0x4c], edx
jle 0x407f56
jmp 0x407f30
mov eax, dword [esp + 0x50]
push edi
push ecx
push eax
call fcn.0040cbf0
mov eax, dword [esi + 0x28]
cdq
idiv edi
add dword [esp + 0x5c], edi
mov ecx, dword [0x457c70]
add ebx, 1
add esp, 0xc
cmp ebx, eax
jl 0x407f30
cmp dword [esp + 0x4c], 0
je 0x407f98
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
push edx
push ecx
push eax
call fcn.0040cbf0
add esp, 0xc
jmp 0x407f98
call dword [0x484338]
push eax
call fcn.0040d77f
xor edi, edi
add esp, 4
cmp dword [esi + 0x28], edi
jle 0x407f98
call fcn.0040d78c
mov byte [edi + ebx], al
add edi, 1
cmp edi, dword [esi + 0x28]
jl 0x407f88
cmp dword [ebp + 0xc], 0
mov ebx, dword [0x4844f8]
jne 0x408053
cmp dword [esi + 0x54], 0
jne 0x408053
mov ecx, dword [esp + 0x6c]
push ecx
call dword [0x4844f0]
cmp eax, 0xffffffff
jne 0x407feb
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0xb0]
push edx
push eax
push ecx
call ebx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [edx]
push eax
push 0x43fde0
call fcn.0040134d
add esp, 0x14
jmp 0x408053
cmp dword [esi + 0x44], 0
je 0x408033
mov eax, dword [esp + 0x54]
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push 2
push ecx
push eax
call dword [0x484500]
mov edi, eax
test edi, edi
je 0x408033
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0xb0]
push ecx
push edx
push eax
call ebx
mov ecx, dword [edi]
push eax
push ecx
push 0x43fde0
call fcn.0040134d
add esp, 0x14
jmp 0x408053
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0xb0]
push edx
push eax
push ecx
call ebx
push eax
push 0x43fda4
call fcn.0040134d
add esp, 0x10
mov eax, dword [esi + 0x28]
cmp eax, 8
jge 0x408060
mov eax, 8
add eax, 0x1c
push eax
mov dword [esp + 0x58], eax
call fcn.0040d16e
add esp, 4
cmp dword [0x457c68], 0
mov ebx, eax
jne 0x40817a
nop
cmp dword [0x457c70], 0
jne 0x4080b4
call dword [0x484338]
push eax
call fcn.0040d77f
xor edi, edi
add esp, 4
cmp dword [esi + 0x28], edi
jle 0x4080b4
nop
call fcn.0040d78c
mov edx, dword [esp + 0x50]
mov byte [edi + edx], al
add edi, 1
cmp edi, dword [esi + 0x28]
jl 0x4080a0
cmp dword [0x457c6c], 0
je 0x408155
cmp dword [ebp + 0xc], 0
mov dword [0x457c6c], 0
jne 0x408155
cmp dword [esi + 0x54], 0
jne 0x408155
cmp dword [esi + 0x18], 0
jne 0x4080e5
fldz
jmp 0x4080e8
fld qword [esi + 8]
mov eax, dword [esp + 0x6c]
fstp qword [esp + 0x98]
push eax
push 0x43fd84
call fcn.0040134d
mov edi, dword [esi + 0x1c]
mov ecx, dword [esp + 0x50]
sub ecx, edi
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edi
push ecx
push 0x43f8a8
call fcn.0040134d
push 0x43f86c
call fcn.0040134d
fld qword [esi + 0x10]
add esp, 8
fstp qword [esp + 0x10]
fld qword [esi]
fstp qword [esp + 8]
fld qword [esp + 0xb0]
fstp qword [esp]
push 0x43fd3c
call fcn.0040134d
add esp, 0x1c
cmp dword [esi + 0x24], 0
jne 0x408274
mov eax, dword [esp + 0x48]
mov edx, eax
add eax, 1
cmp edx, dword [esi + 0x50]
mov dword [esp + 0x48], eax
jne 0x408279
sub dword [esp + 0x48], 1
mov edx, dword [esp + 0x7c]
push edx
call dword [0x447c20]
mov eax, dword [esp + 0x78]
push eax
call fcn.0040c7aa
add esp, 4
test ebx, ebx
je 0x40819f
push ebx
call fcn.0040c7aa
add esp, 4
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4081b0
push eax
call fcn.0040c7aa
add esp, 4
cmp dword [esi + 0x18], 0
jne 0x4081bb
fldz
fstp qword [esi + 8]
cmp dword [ebp + 0xc], 0
jne 0x408234
cmp dword [esi + 0x54], 0
jne 0x408234
cmp dword [esp + 0x48], 0
je 0x40869f
mov ecx, dword [esp + 0x6c]
push ecx
push 0x43fd84
call fcn.0040134d
mov edi, dword [esi + 0x1c]
mov ecx, dword [esp + 0x50]
sub ecx, edi
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esp + 0x50]
mov edx, dword [esp + 0x50]
push eax
push ecx
push edi
push edx
push 0x43f8a8
call fcn.0040134d
push 0x43f86c
call fcn.0040134d
fld qword [esi + 0x10]
add esp, 8
fstp qword [esp + 0x10]
fld qword [esi]
fstp qword [esp + 8]
fld qword [esi + 8]
fstp qword [esp]
push 0x43f67c
call fcn.0040134d
add esp, 0x1c
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x408259
mov eax, dword [esp + 0x94]
test eax, eax
je 0x408259
mov dword [eax], ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 4], ecx
lea edi, [eax + 8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d67d
mov esp, ebp
pop ebp
ret 0xc
add dword [esp + 0x48], 1
cmp dword [esi + 0x48], 0
je 0x4082a4
cmp dword [esi + 0x28], 0x5c1
jl 0x4082a4
push 0x43fcf0
call fcn.0040134d
add esp, 4
mov dword [0x457c74], 3
jmp 0x40868d
mov edi, dword [esp + 0x54]
push edi
push 0
push ebx
call fcn.0040cf60
add esp, 0xc
lea eax, [esp + 0xa0]
push eax
call dword [0x484348]
mov edx, dword [0x4460d0]
mov eax, dword [edx + 4]
mov ecx, 0x4460d0
call eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov eax, dword [0x4460d0]
mov dword [0x4460d8], ecx
mov dword [0x4460dc], edx
mov edx, dword [eax + 8]
mov ecx, 0x4460d0
call edx
mov eax, dword [esi + 0x30]
movzx edx, word [esi + 0x28]
push eax
mov eax, dword [esp + 0x7c]
push edi
push ebx
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x90]
push eax
push ecx
push edx
call dword [0x447c1c]
mov ecx, 0x4460d0
mov edi, eax
call fcn.004011a9
xor eax, eax
cmp edi, 1
sete al
lea ecx, [esp + 0x58]
push ecx
mov edi, eax
mov dword [esp + 0x50], edi
call dword [0x484354]
test edi, edi
jne 0x40840f
cmp dword [esi + 0x58], edi
je 0x408385
mov edx, dword [esp + 0xb0]
push edx
call dword [0x4844f8]
movzx ecx, word [esp + 0x62]
movzx edx, word [esp + 0x60]
push eax
movzx eax, word [esp + 0x68]
push eax
push ecx
push edx
push 0x43fcc0
call fcn.0040134d
add esp, 0x14
jmp 0x4083e9
cmp dword [esi + 0x5c], 0
je 0x4083cd
mov eax, dword [esp + 0xb0]
push eax
call dword [0x4844f8]
movzx ecx, word [esp + 0x64]
movzx edx, word [esp + 0x62]
push eax
movzx eax, word [esp + 0x64]
push ecx
movzx ecx, word [esp + 0x66]
push edx
movzx edx, word [esp + 0x66]
push eax
movzx eax, word [esp + 0x68]
push ecx
push edx
push eax
push 0x43fc7c
call fcn.0040134d
add esp, 0x20
jmp 0x4083e9
mov ecx, dword [esp + 0xb0]
push ecx
call dword [0x4844f8]
push eax
push 0x43fc60
call fcn.0040134d
add esp, 8
mov dword [0x457c74], 1
cmp dword [esi + 0x4c], 2
jne 0x408669
push 0x64
push 0x1b8
call dword [0x484334]
jmp 0x408669
mov eax, dword [ebx + 4]
test eax, eax
je 0x408445
push eax
mov dword [esp + 0x50], 0
call dword [0x484350]
mov edx, dword [ebx + 4]
push edx
push 0x43fc40
call fcn.0040134d
add esp, 8
mov dword [0x457c74], 5
jmp 0x408669
movzx eax, word [ebx + 0xc]
xor ecx, ecx
cmp eax, dword [esi + 0x28]
sete cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x4c], eax
jne 0x40848e
mov edx, dword [esp + 0xb0]
push edx
call dword [0x4844f8]
push eax
push 0x43fc24
call fcn.0040134d
add esp, 8
push 0x3b
mov dword [0x457c74], 4
call dword [0x484350]
jmp 0x408669
fldz
fcomp qword [esp + 0x80]
fnstsw ax
test ah, 5
jp 0x4084e2
mov ecx, 0x4460d0
call fcn.0040122b
fcomp qword [0x43f928]
fnstsw ax
test ah, 0x41
jne 0x4084e2
mov ecx, 0x4460d0
call fcn.0040122b
fsub qword [esp + 0x80]
fabs
fld qword [esp + 0x88]
fsub st(1), st(0)
fxch st(1)
fmul qword [0x43fc18]
faddp st(1)
fstp qword [esp + 0x88]
mov ecx, 0x4460d0
call fcn.0040122b
fstp qword [esp + 0x80]
cmp dword [esi + 0x58], 0
je 0x40851a
movzx eax, word [esp + 0x64]
movzx ecx, word [esp + 0x62]
movzx edx, word [esp + 0x60]
push eax
push ecx
push edx
push 0x43fc00
call fcn.0040134d
add esp, 0x10
jmp 0x408551
cmp dword [esi + 0x5c], 0
je 0x408551
movzx eax, word [esp + 0x64]
movzx ecx, word [esp + 0x62]
movzx edx, word [esp + 0x60]
push eax
movzx eax, word [esp + 0x62]
push ecx
movzx ecx, word [esp + 0x62]
push edx
movzx edx, word [esp + 0x64]
push eax
push ecx
push edx
push 0x43fbd8
call fcn.0040134d
add esp, 0x1c
mov edi, dword [esi + 0x60]
test edi, edi
jne 0x40855c
mov edi, dword [esp + 0x48]
movzx eax, byte [ebx + 0x14]
push eax
mov ecx, 0x4460d0
call fcn.0040122b
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0xb4]
sub esp, 8
fstp qword [esp]
push ecx
push edx
call dword [0x4844f8]
push eax
push edi
push 0x43fb9c
call fcn.0040134d
add esp, 0x1c
cmp dword [esi + 0x64], 0
je 0x4085d5
mov cl, byte [ebx + 0x14]
cmp cl, 0x80
jbe 0x4085a7
mov eax, 0xff
jmp 0x4085c2
cmp cl, 0x40
jbe 0x4085b3
mov eax, 0x80
jmp 0x4085c2
mov eax, 0x1f
cmp al, cl
sbb eax, eax
and eax, 0x21
add eax, 0x1f
movzx ecx, cl
sub eax, ecx
push eax
push 0x43fb90
call fcn.0040134d
add esp, 8
cmp dword [ebp + 0xc], 0
jne 0x4085fb
cmp dword [esi + 0x68], 0
je 0x4085fb
fld qword [esp + 0x88]
sub esp, 8
fstp qword [esp]
push 0x43fb7c
call fcn.0040134d
add esp, 0xc
cmp dword [esi + 0x3c], 0
je 0x408613
movzx edx, byte [ebx + 0x15]
push edx
push 0x43fb70
call fcn.0040134d
add esp, 8
push 0x43f51c
call fcn.0040134d
mov edi, 1
add esp, 4
mov dword [0x457c74], 0
cmp dword [esi + 0x4c], edi
jne 0x408641
push 0x64
push 0x1b8
call dword [0x484334]
cmp byte [ebx + 0x17], 0
je 0x40864f
push ebx
mov ecx, esi
call fcn.00401069
add dword [esi + 0x1c], edi
mov ecx, 0x4460d0
call fcn.0040122b
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00401064
cmp dword [esi + 0x24], 0
jne 0x40867c
mov eax, dword [esp + 0x48]
cmp eax, dword [esi + 0x50]
je 0x40817a
cmp dword [esp + 0x4c], 0
je 0x40868d
mov ecx, dword [esi + 0x2c]
push ecx
call dword [0x48432c]
cmp dword [0x457c68], 0
je 0x408080
jmp 0x40817a
push 0x43fb4c
call fcn.0040134d
add esp, 4
jmp 0x408259