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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x108]
movzx eax, word [ecx + 0x48]
push edi
movsx edi, word [esp + 0x78]
xor ebx, ebx
cmp edi, eax
push edi
sete bl
call fcn.0051dc90
mov ecx, dword [esi + 0x108]
push edi
mov ebp, eax
call fcn.0051dcd0
test ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x108]
movsx ecx, word [eax + 0x4a]
movsx edx, word [eax + 0x4c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
fild dword [esp + 0x14]
fstp dword [esp + 0x14]
fild dword [esp + 0x10]
fstp dword [esp + 0x18]
je 0x4627ea
mov eax, dword [eax + 0x88]
push eax
jmp 0x4627f1
mov ecx, dword [eax + 0x84]
push ecx
mov ecx, dword [0x62f43c]
call fcn.00526e20
mov ecx, dword [0x62f43c]
call fcn.00526f50
mov ecx, dword [0x62f43c]
mov di, ax
call fcn.00526f40
mov ecx, dword [0x62f434]
xor edx, edx
mov dl, byte [ebp + 0x20]
add edi, eax
push edx
call fcn.0052b6b0
movzx ebp, word [esp + 0x7c]
movzx eax, word [esp + 0x80]
mov dword [esp + 0x7c], ebp
push ebx
push 0
fild dword [esp + 0x84]
sub esp, 8
mov dword [esp + 0x8c], eax
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
fld dword [esp + 0x20]
fadd dword [esp + 0x24]
fstp dword [esp + 4]
fild dword [esp + 0x8c]
fstp dword [esp]
push ecx
call fcn.00439d40
mov ecx, dword [0x62f43c]
add esp, 0x14
mov dword [esp + 0x34], ebp
call fcn.00526f40
movsx edx, ax
mov dword [esp + 0x80], edx
fild dword [esp + 0x80]
fadd dword [esp + 0x18]
fmul dword [0x5e7610]
call fcn.0058c3f0
fld dword [esp + 0x14]
mov ebx, dword [esp + 0x7c]
sub ebx, eax
mov dword [esp + 0x38], ebx
call fcn.0058c3f0
add eax, ebp
mov dword [esp + 0x3c], eax
movsx eax, di
add eax, ebx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x134]
cmp eax, 8
jl 0x462a05
mov cx, word [esp + 0x78]
cmp cx, 0x521c
jne 0x46296a
mov eax, dword [esi + 0x128]
test eax, eax
mov byte [esp + 0x78], 0xff
jne 0x4628f8
mov byte [esp + 0x78], 0x3f
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, dword [0x62f434]
push 0
push 0x1b
call fcn.0052b140
mov ecx, dword [0x62f434]
push 0
movsx edi, ax
call fcn.0052b140
mov ecx, dword [esp + 0x84]
movsx eax, ax
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x80], eax
push ecx
mov ecx, dword [0x62f434]
fild dword [esp + 0x84]
fstp dword [esp]
push 0x1b
call fcn.0052b120
movsx edx, ax
mov eax, dword [esp + 0x48]
sub eax, edx
mov dword [esp + 0x84], eax
fild dword [esp + 0x84]
jmp 0x4629f9
cmp cx, 0x5223
jne 0x462a05
mov ecx, dword [esi + 0x128]
add eax, 0xfffffff8
cmp ecx, eax
mov byte [esp + 0x78], 0xff
jne 0x46298c
mov byte [esp + 0x78], 0x3f
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, dword [0x62f434]
push 2
push 0x18
call fcn.0052b140
mov ecx, dword [0x62f434]
push 0
movsx edi, ax
call fcn.0052b140
mov ecx, dword [esp + 0x84]
movsx eax, ax
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x80], eax
push ecx
mov ecx, dword [0x62f434]
fild dword [esp + 0x84]
fstp dword [esp]
push 0x18
call fcn.0052b120
movsx edx, ax
mov eax, dword [esp + 0x48]
sub eax, edx
mov dword [esp + 0x84], eax
fild dword [esp + 0x84]
push ecx
fstp dword [esp]
call fcn.00439ed0
add esp, 0x10
mov edx, dword [esi + 0x128]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x140]
add edi, edx
movzx edx, byte [ecx + edi*2]
push edx
mov ecx, 0x631608
call fcn.004308a0
mov ebp, eax
cmp dword [ebp + 8], 5
mov ebx, 1
jne 0x462a57
mov eax, dword [esi + 0x140]
cmp byte [eax + edi*2 + 1], bl
jne 0x462a4b
push 0x5dfd98
lea ecx, [esp + 0x24]
push ecx
jmp 0x462a61
push 0x5dfd9c
lea edx, [esp + 0x24]
push edx
jmp 0x462a61
push 0x5daa0e
lea eax, [esp + 0x24]
push eax
call fcn.004c1900
mov al, byte [esi + 0x13c]
add esp, 8
cmp al, bl
jne 0x462a7f
push 0x5e760c
lea ecx, [esp + 0x2c]
push ecx
jmp 0x462a89
push 0x5dfda0
lea edx, [esp + 0x2c]
push edx
call fcn.004c1900
mov eax, dword [ebp + 4]
add esp, 8
push eax
lea ecx, [esp + 0x48]
push 0x5e7608
push ecx
call fcn.004c1900
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x6c]
push 0x5e7600
push edx
call fcn.004c1900
add esp, 0x20
push 0x7fff
push ebx
push 0
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [0x62f43c]
call fcn.005294e0
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0xc