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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 1
mov ebx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov dword [esp + 0x84], eax
mov ecx, dword [ebx + 0x10]
mov ebp, dword [edi + 8]
mov eax, ecx
mov dword [esp + 0x2c], esi
cdq
sub eax, edx
mov edx, dword [esi + 0xc]
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
push edx
push ecx
push eax
mov dword [esp + 0x2c], ecx
call fcn.00499c80
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
call fcn.00499c80
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
mov dword [ebx + 4], ecx
mov ecx, dword [edi + 0x30]
push edx
mov edx, dword [edi + 0x38]
push eax
mov eax, dword [edi + 0x34]
push ecx
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [esp + 0xa4]
push eax
push ecx
mov ecx, dword [esp + 0xa4]
mov eax, dword [edx]
push ebx
mov edx, dword [ecx]
push esi
push eax
push edx
call fcn.004979a0
mov esi, eax
add esp, 0x40
test esi, esi
jne 0x4933e5
mov eax, dword [esp + 0x84]
push 1
push eax
push ebp
call fcn.00497310
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x90]
push ecx
push edx
push ebx
call fcn.00499300
mov ecx, dword [ebx + 0x14]
xor eax, eax
add esp, 0x18
cmp ecx, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x74], eax
jle 0x4933a6
push ebp
call fcn.004871d0
mov eax, dword [ebx + 0x10]
add esp, 4
test eax, eax
mov dword [esp + 0x78], 0
jle 0x4932e1
mov eax, dword [edi + 0x38]
mov esi, dword [esp + 0x74]
lea edx, [esp + 0x14]
movsx ecx, word [eax + esi*2]
push edx
push ebp
mov dword [esp + 0x1c], ecx
call fcn.00497460
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, 4
ja case.default.0x4930cd
jmp dword [eax*4 + 0x4933f0]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x40]
push eax
mov eax, dword [edi + 0x38]
push ecx
mov ecx, dword [edi + 0x34]
push edx
mov edx, dword [esp + 0x38]
push esi
push eax
mov eax, dword [esp + 0x90]
push ecx
push edx
push eax
call fcn.00498670
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4933e5
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x1c]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x30]
push ebp
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x64]
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x80]
push ecx
push edx
push eax
call fcn.00493410
mov esi, eax
add esp, 0x34
test esi, esi
jne 0x4933e5
jmp 0x493238
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [edi + 0x38]
push edx
mov edx, dword [edi + 0x34]
push eax
mov eax, dword [esp + 0x38]
push esi
push ecx
mov ecx, dword [esp + 0x90]
push edx
push eax
push ecx
call fcn.00498d60
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x4933e5
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x1c]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [edi + 0x34]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
push eax
push ecx
lea eax, [esp + 0x64]
push edx
lea ecx, [esp + 0x80]
push eax
push ecx
call fcn.00493600
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x4933e5
jmp 0x493238
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x84]
inc ecx
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
push 1
push ebp
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x74]
push ecx
push edx
push eax
call fcn.00492de0
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x4933e5
push ebp
call fcn.004974e0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, 0x10
add esp, 4
add edx, ecx
add eax, ecx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
add edx, ecx
add eax, ecx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x64], eax
mov eax, 8
add edx, eax
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x6c]
add edx, eax
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x40]
add edx, ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x44]
add edx, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x48]
add edx, ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x4c]
add edx, ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x50]
add edx, eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x54]
add edx, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x74]
add eax, ecx
mov ecx, dword [ebx + 0x10]
inc edx
cmp eax, ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
jl 0x4930a3
push ebp
call fcn.00497500
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add edx, eax
add ecx, eax
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x68]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x70]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x48]
add edx, eax
add ecx, eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x50]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x58]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 0x14]
add eax, 0x10
add esp, 4
cmp eax, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x80], eax
jge 0x4933a6
jmp 0x493087
mov esi, 0x2c
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x84]
push eax
call fcn.004938d0
push ebp
call fcn.004975b0
mov ebx, dword [ebx + 0x20]
add esp, 8
fild dword [esp + 0x28]
mov dword [esp + 0x7c], ebx
fidiv dword [esp + 0x7c]
fcomp qword [str.333333]
fnstsw ax
test ah, 0x41
jne 0x4933e5
mov ecx, dword [edi + 0x30]
push ecx
push ebx
call fcn.00499a90
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret