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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push ebp
push eax
xor ebp, ebp
push ecx
push edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call fcn.004bf620
fstp qword [esp + 0x7c]
fld qword [esp + 0x7c]
fcomp qword [0x51b150]
add esp, 0xc
fnstsw ax
test ah, 0x40
je 0x4bf1ef
mov eax, dword [esp + 0x6c]
pop ebp
mov byte [eax], 0x30
mov byte [eax + 1], 0
mov eax, 1
add esp, 0x64
ret
mov edx, dword [esp + 0x74]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
push eax
call fcn.004bf690
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp ecx, ebp
je 0x4bf220
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ebp
test byte [ecx], 1
jne 0x4bf228
mov dword [esp + 4], 1
mov edx, dword [esp + 0x14]
push ebx
push esi
cmp edx, ebp
push edi
jl 0x4bf25b
mov esi, dword [0x5428d8]
mov ecx, esi
imul ecx, edx
cmp eax, ebp
jne 0x4bf250
lea edi, [ecx + 1]
mov esi, 1
mov ebx, ecx
mov ebp, ecx
jmp 0x4bf294
lea ebx, [esi + ecx]
inc esi
mov ebp, ecx
lea edi, [ebx + 1]
jmp 0x4bf294
cmp edx, 0xfffffbce
jle 0x4bf281
cmp eax, ebp
je 0x4bf281
mov eax, dword [0x5428d8]
mov esi, 1
sub esi, edx
mov ebx, 2
imul esi, eax
lea edi, [eax + 1]
inc esi
jmp 0x4bf294
mov eax, dword [0x5428d8]
mov edi, 1
imul eax, edx
mov esi, edi
sub esi, eax
xor ebx, ebx
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push ecx
push edx
call sub.MSVCRT.dll_log
fstp qword [esp + 0x84]
push 0x40240000
push 0
call sub.MSVCRT.dll_log
fdivr qword [esp + 0x8c]
add esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_ceil]
add esp, 8
call sub.MSVCRT.dll__ftol
test eax, eax
mov dword [esp + 0x84], eax
jl 0x4bf2e7
add esi, eax
mov dword [esp + 0x1c], eax
jmp 0x4bf2f3
sub edi, eax
sub ebx, eax
sub ebp, eax
neg eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
push 1
push eax
call fcn.004dc120
add esp, 8
xor ecx, ecx
mov eax, 0x5429b8
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x18], eax
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x14]
test ecx, edx
je 0x4bf337
lea edx, [esp + 0x34]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004dbf60
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x7c]
add eax, 0x10
inc ecx
cmp eax, 0x542a38
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x18], eax
jle 0x4bf311
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.004dbf60
lea ecx, [esp + 0x30]
lea edx, [esp + 0x30]
push ecx
push edi
push edx
call fcn.004dbcf0
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.004c3e70
lea edx, [esp + 0x54]
lea eax, [esp + 0x54]
push edx
push ebx
push eax
call fcn.004dbcf0
lea ecx, [esp + 0x90]
lea edx, [esp + 0x90]
push ecx
push ebp
push edx
call fcn.004dbcf0
lea eax, [esp + 0x7c]
push 1
push eax
call fcn.004dc120
add esp, 0x40
xor ebx, ebx
mov edi, 0x5429b8
mov eax, dword [esp + 0x1c]
mov edx, 1
mov ecx, ebx
shl edx, cl
test eax, edx
je 0x4bf3e1
lea ecx, [esp + 0x44]
lea edx, [esp + 0x44]
push ecx
push edi
push edx
call fcn.004dbf60
add esp, 0xc
add edi, 0x10
inc ebx
cmp edi, 0x542a38
jle 0x4bf3bd
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44]
push eax
push esi
push ecx
call fcn.004dbcf0
lea edx, [esp + 0x60]
push edx
call fcn.004c06f0
lea eax, [esp + 0x64]
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.004dcfb0
lea eax, [esp + 0x60]
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.004dce00
mov edi, dword [esp + 0x34]
add esp, 0x24
test eax, eax
jg 0x4bf4ac
test edi, edi
je 0x4bf43d
test eax, eax
je 0x4bf4ac
lea edx, [esp + 0x54]
lea eax, [esp + 0x54]
push edx
push 0xa
push eax
call fcn.004dbea0
lea ecx, [esp + 0x50]
lea edx, [esp + 0x60]
push ecx
push edx
call fcn.004dce00
add esp, 0x14
test eax, eax
jl 0x4bf46c
test edi, edi
je 0x4bf4cf
test eax, eax
jne 0x4bf4cf
lea eax, [esp + 0x24]
lea ecx, [esp + 0x24]
push eax
push 0xa
push ecx
call fcn.004dbea0
lea edx, [esp + 0x40]
lea eax, [esp + 0x40]
push edx
push 0xa
push eax
call fcn.004dbea0
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x7c]
push ecx
push 0xa
push edx
call fcn.004dbea0
mov eax, dword [esp + 0xa8]
add esp, 0x24
dec eax
jmp 0x4bf4c8
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44]
push eax
push 0xa
push ecx
call fcn.004dbea0
mov eax, dword [esp + 0x90]
add esp, 0xc
inc eax
mov dword [esp + 0x84], eax
mov ebp, dword [esp + 0x78]
lea edx, [esp + 0x24]
lea eax, [esp + 0x24]
push edx
push 0xa
push eax
call fcn.004dbea0
lea ecx, [esp + 0x30]
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.004dc840
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x54]
mov ebx, dword [edx]
push 0xa
push ecx
call fcn.004dbea0
lea edx, [esp + 0x8c]
lea eax, [esp + 0x8c]
push edx
push 0xa
push eax
call fcn.004dbea0
lea ecx, [esp + 0x98]
lea edx, [esp + 0x58]
push ecx
push edx
call fcn.004dce00
add esp, 0x3c
test edi, edi
je 0x4bf54f
xor ecx, ecx
test eax, eax
setle cl
mov esi, ecx
jmp 0x4bf558
xor edx, edx
test eax, eax
setl dl
mov esi, edx
lea eax, [esp + 0x54]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.004dcfb0
lea eax, [esp + 0x50]
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.004dce00
add esp, 0x14
test edi, edi
je 0x4bf58d
xor edx, edx
test eax, eax
setge dl
mov eax, edx
jmp 0x4bf596
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
test esi, esi
jne 0x4bf5aa
test eax, eax
jne 0x4bf5df
add bl, 0x30
mov byte [ebp], bl
inc ebp
jmp 0x4bf4d3
test eax, eax
jne 0x4bf5b3
add bl, 0x30
jmp 0x4bf5e2
lea edx, [esp + 0x24]
lea eax, [esp + 0x24]
push edx
push 1
push eax
call fcn.004dbcf0
lea ecx, [esp + 0x50]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.004dce00
add esp, 0x14
test eax, eax
jge 0x4bf5df
add bl, 0x30
jmp 0x4bf5e2
add bl, 0x31
lea eax, [esp + 0x54]
push 0
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x50]
push edx
lea ecx, [esp + 0x34]
push eax
mov byte [ebp], bl
push ecx
mov byte [ebp + 1], 0
call fcn.004dcea0
mov eax, dword [esp + 0x9c]
add esp, 0x18
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x64
ret