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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 4]
mov ebx, ecx
sub esp, 0x13c
mov eax, dword [0x5a3dcc]
mov dword [ebp - 0x100], edi
lea edi, [ecx + 8]
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xffffffff
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea eax, [ecx + 0x5c]
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0xffffffff
mov dword [ecx + 0x28], 0xffffffff
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0xffffffff
mov dword [ecx + 0x38], 0xffffffff
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0xffffffff
mov dword [ecx + 0x48], 0xffffffff
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0xffffffff
mov dword [ecx + 0x58], 0xffffffff
mov dword [ebp - 0x118], edi
mov ecx, eax
mov dword [ebp - 0x104], eax
mov esi, dword [0x5a42a4]
call esi
lea eax, [ebx + 0x64]
mov dword [ebp - 0x10c], eax
mov ecx, eax
call esi
mov eax, dword [ebp + 8]
movzx esi, byte [eax + 0x84]
mov eax, esi
test al, al
je 0x4160e0
mov esi, 0x65
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov word [esp], si
mov ecx, dword [ebp + 0x10]
call dword [0x5a418c]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x108], eax
jle 0x4160d0
mov edx, dword [ebp + 0x10]
mov edi, dword [edx]
mov edx, dword [edi + 0xc]
lea eax, [edi + eax*2 - 2]
movzx eax, word [eax + edx]
lea ecx, [eax - 0x30]
cmp ecx, 9
jbe 0x416730
cmp eax, 0x7f
mov dword [ebp - 0x110], edx
jbe 0x4160d0
call dword [0x5a3ed8]
cmp eax, 3
mov edx, dword [ebp - 0x110]
je 0x416730
nop
lea esi, [esi]
mov dword [ebp - 0x110], 0xffffffff
xor esi, esi
jmp 0x4160f4
mov dword [ebp - 0x110], 0xffffffff
mov dword [ebp - 0x108], 0xffffffff
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x104]
mov dword [esp], eax
mov eax, dword [0x5a42ac]
mov ecx, edi
mov dword [ebp - 0x114], eax
call eax
mov ecx, edi
sub esp, 4
mov edi, dword [0x5a4468]
call edi
fldz
fxch st(1)
fucompi st(1)
fstp st(0)
ja 0x416641
mov eax, esi
test al, al
je 0x416500
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0xe4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [0x5a4178]
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebx]
lea ecx, [ebp - 0xe4]
sub esp, 8
mov dword [ebx], edx
mov dword [ebp - 0xe4], eax
call fcn.004c2760
mov eax, dword [ebp - 0x110]
mov dword [esp + 8], 0xffffffff
lea ecx, [ebp - 0xe0]
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov eax, dword [0x5a4174]
mov dword [ebp - 0x11c], eax
call eax
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0xe0]
sub esp, 0xc
mov dword [ebx + 8], edx
mov dword [ebp - 0xe0], eax
call fcn.004c2760
mov eax, dword [ebp + 8]
cmp byte [eax + 0xdc], 0
jne 0x416600
mov dword [esp + 4], 2
mov dword [esp], 0x4eb7fc
call dword [0x5a3fa4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x85], 0
je 0x416711
lea edi, [ebp - 0x88]
mov ecx, 0xd7
mov word [esp], cx
mov ecx, edi
call dword [0x5a3fd4]
mov ecx, dword [ebp - 0x88]
sub esp, 4
lea esi, [ebp - 0x68]
mov dword [ebp - 0x68], ecx
call fcn.004ce3a0
lea eax, [ebp - 0x78]
mov ecx, esi
mov dword [ebp - 0x120], eax
mov dword [esp], eax
mov eax, dword [0x5a3fb4]
mov dword [ebp - 0x124], eax
call eax
sub esp, 4
mov ecx, ebx
mov eax, dword [ebp - 0x124]
mov dword [esp], esi
call eax
sub esp, 4
mov ecx, esi
call fcn.004c2760
mov ecx, edi
call fcn.004c2760
mov ecx, dword [ebp - 0x120]
call fcn.004c2760
mov edi, dword [ebp - 0x108]
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0xdc]
sub eax, edi
mov dword [esp + 8], eax
lea eax, [edi + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov eax, dword [ebp - 0x11c]
call eax
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0xdc]
sub esp, 0xc
mov dword [ebx + 4], edx
mov dword [ebp - 0xdc], eax
call fcn.004c2760
mov esi, dword [0x5a3fc8]
jmp 0x4162e9
mov edx, dword [eax + 0xc]
cmp word [eax + edx + 2], 0x30
jne 0x4166e3
mov dword [esp + 4], 1
mov dword [esp], 1
mov ecx, dword [ebp - 0x100]
call esi
sub esp, 8
mov eax, dword [ebx + 4]
mov edx, dword [eax + 4]
cmp edx, 2
jg 0x4162c0
test edx, edx
jne 0x4166e0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10c]
mov dword [esp], eax
mov ecx, edi
mov eax, dword [ebp - 0x114]
call eax
sub esp, 4
mov ecx, edi
mov esi, dword [0x5a4478]
call esi
test eax, eax
jle 0x4167c4
mov edi, dword [ebp - 0x10c]
mov ecx, edi
call esi
mov dword [ebp - 0x108], eax
fnstcw word [ebp - 0xfa]
movzx eax, word [ebp - 0xfa]
fild dword [ebp - 0x108]
mov ecx, edi
fmul dword [0x4f2880]
mov ah, 0xc
mov word [ebp - 0xfc], ax
fldcw word [ebp - 0xfc]
fistp dword [esp]
fldcw word [ebp - 0xfa]
call dword [0x5a4288]
mov eax, dword [ebp - 0x104]
sub esp, 4
lea esi, [ebp - 0x68]
mov ecx, esi
mov dword [esp], eax
mov eax, dword [0x5a4210]
mov dword [ebp - 0x110], eax
call eax
lea eax, [ebp - 0xc8]
sub esp, 4
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0xffffffff
lea ecx, [ebp - 0xd8]
mov dword [esp + 4], eax
mov eax, dword [0x5a4430]
mov dword [ebp - 0xbc], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x200
mov dword [esp], esi
mov dword [ebp - 0x108], eax
call eax
mov eax, dword [ebp - 0xd8]
sub esp, 0x18
mov ecx, esi
mov edi, dword [0x5a4214]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebx + 0x18], eax
call edi
mov eax, dword [ebp - 0x10c]
mov ecx, esi
mov dword [esp], eax
mov eax, dword [ebp - 0x110]
call eax
mov eax, dword [ebp - 0x100]
sub esp, 4
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xffffffff
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x9c], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0xa8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x200
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x108]
call eax
mov eax, dword [ebp - 0xb8]
sub esp, 0x18
mov ecx, esi
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0xac]
mov dword [ebx + 0x28], eax
call edi
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x416820
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x24]
sub ecx, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov edi, dword [ebx + 0xc]
lea eax, [ecx + eax + 4]
mov ecx, dword [ebx + 0x10]
add eax, dword [ebx + 0x14]
jmp 0x4165a5
mov eax, dword [ebp + 0x10]
mov ecx, ebx
lea edi, [ebp - 0x88]
mov dword [esp], eax
call dword [0x5a3fdc]
mov eax, dword [ebp - 0x104]
sub esp, 4
mov ecx, edi
mov dword [esp], eax
call dword [0x5a4210]
lea esi, [ebp - 0x68]
sub esp, 4
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xffffffff
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x5c], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x204
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [0x5a4430]
mov eax, dword [ebp - 0x78]
mov ecx, edi
sub esp, 0x18
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x70]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebx + 0x48], eax
call dword [0x5a4214]
mov eax, dword [ebx + 0x44]
mov edi, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x40]
sub eax, edi
sub edx, ecx
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x58], edx
fldz
fld qword [eax + 0x78]
fucomi st(1)
fstp st(1)
jae 0x4165e1
fchs
fld qword [0x4f2808]
fucompi st(1)
fstp st(0)
jb 0x416670
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp], 1
mov dword [esp + 4], 0x4eb7ff
mov ecx, ebx
call dword [0x5a4198]
sub esp, 8
test al, al
je 0x4161cc
mov dword [esp], 2
mov dword [esp + 4], 0x4eb7fc
mov ecx, ebx
call dword [0x5a3fd8]
sub esp, 8
jmp 0x416266
mov ecx, dword [ebp - 0x104]
call edi
fadd qword [0x4f2878]
mov ecx, dword [ebp - 0x104]
fstp qword [esp]
call dword [0x5a428c]
sub esp, 8
jmp 0x41612a
mov ecx, esi
call dword [0x5a41ec]
mov eax, dword [ebp + 8]
mov dword [esp + 8], 2
mov ecx, esi
fld qword [eax + 0x78]
fstp qword [esp]
call dword [0x5a41e4]
lea eax, [ebx + 0x4c]
sub esp, 0xc
lea ecx, [ebp - 0xf8]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [0x5a442c]
mov eax, dword [ebp - 0xf8]
sub esp, 8
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp - 0xec]
mov dword [ebx + 0x58], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [eax + 0xc]
cmp word [eax + edx], 0x2b
jne 0x4162fc
mov dword [esp + 4], 1
mov dword [esp], 0
mov ecx, dword [ebp - 0x100]
call dword [0x5a3fc8]
sub esp, 8
jmp 0x4162fc
lea edi, [ebp - 0x88]
mov edx, 0xb7
mov word [esp], dx
mov ecx, edi
call dword [0x5a3fd4]
jmp 0x41620b
mov eax, dword [ebp - 0x108]
lea esi, [eax + 1]
mov eax, edi
mov edi, dword [edi + 4]
add edx, eax
cmp edi, esi
jle 0x4168e3
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], edx
mov ebx, edi
jmp 0x41676b
add esi, 1
cmp ebx, esi
je 0x4168c5
mov eax, dword [ebp - 0x110]
lea edx, [esi - 1]
mov edi, esi
movzx eax, word [eax + esi*2]
lea ecx, [eax - 0x2b]
test cx, 0xfffd
je 0x416760
lea ecx, [eax - 0x30]
cmp ecx, 9
jbe 0x416760
cmp eax, 0x7f
jbe 0x4167a8
mov dword [ebp - 0x11c], edx
call dword [0x5a3ed8]
cmp eax, 3
je 0x416760
mov edx, dword [ebp - 0x11c]
cmp dword [ebp - 0x108], edx
mov dword [ebp - 0x110], edx
mov ebx, dword [ebp - 0x114]
setl al
mov esi, eax
jmp 0x4160f4
mov esi, dword [ebp - 0x10c]
mov ecx, esi
call dword [0x5a4474]
mov dword [ebp - 0x108], eax
fnstcw word [ebp - 0xfa]
movzx eax, word [ebp - 0xfa]
fild dword [ebp - 0x108]
mov ecx, esi
fmul dword [0x4f2880]
mov ah, 0xc
mov word [ebp - 0xfc], ax
fldcw word [ebp - 0xfc]
fistp dword [esp]
fldcw word [ebp - 0xfa]
call dword [0x5a4284]
jmp 0x416370
mov eax, dword [ebp - 0x104]
mov ecx, esi
mov dword [esp], eax
mov eax, dword [ebp - 0x110]
call eax
mov eax, dword [ebp - 0x118]
sub esp, 4
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xffffffff
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x7c], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x88]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x200
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x108]
call eax
mov eax, dword [ebp - 0x98]
sub esp, 0x18
mov ecx, esi
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x38], eax
call edi
jmp 0x4164da
mov eax, dword [ebp - 0x108]
mov ebx, dword [ebp - 0x114]
mov dword [ebp - 0x110], edi
cmp edi, eax
setg al
mov esi, eax
jmp 0x4160f4
mov eax, dword [ebp - 0x108]
xor esi, esi
mov dword [ebp - 0x110], eax
jmp 0x4160f4