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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x570670
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, 1
mov dword [esp + 0x1c], ecx
cmp eax, edi
jg 0x4f27a3
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
mov eax, dword [ebx + 0x50]
mov esi, dword [eax - 8]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CString::CString_3
xor eax, eax
dec esi
cmp esi, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], esi
jle 0x4f2792
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 0x50]
mov edx, dword [esp + 0x28]
add ecx, edx
mov al, byte [ecx]
cmp al, 0xd
je 0x4f23f7
cmp byte [ecx + 1], 0xa
je 0x4f23f7
mov byte [esp + 0x3c], al
lea ecx, [esp + 0x14]
mov eax, dword [esp + 0x3c]
push eax
call fcn.00557258
mov ecx, dword [ebx + 0x50]
mov edx, dword [esp + 0x28]
mov al, byte [ecx + edx]
test al, al
jge 0x4f23cf
cmp dword [esp + 0x18], 2
jne 0x4f23cd
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], edi
inc eax
mov dword [esp + 0x30], eax
jmp 0x4f277d
test al, al
jle 0x4f23da
inc dword [esp + 0x2c]
jmp 0x4f277d
jge 0x4f277d
cmp dword [esp + 0x18], edi
jne 0x4f277d
mov dword [esp + 0x18], 2
jmp 0x4f277d
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea ecx, [eax + ecx - 1]
test ecx, ecx
je 0x4f2416
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
sub eax, edx
cdq
idiv ecx
mov edi, eax
jmp 0x4f241e
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
sub edi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_3
fild dword [ebp + 0x18]
mov eax, edi
sub esp, 8
cdq
fstp qword [esp + 0x54]
sub eax, edx
mov byte [esp + 0x78], 1
sar eax, 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x24]
fild dword [esp + 0x3c]
fdiv qword [eax + 0x1a8]
fild dword [ebx + 4]
fdiv qword [eax + 0x1a8]
faddp st(1)
fmul qword [0x57f530]
fadd qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
fild dword [ebx + 4]
mov edx, dword [esp + 0x24]
mov edi, eax
fdiv qword [edx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x24]
mov edx, dword [ebx + 0x7c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax - 8]
add esp, 8
xor edi, edi
mov dword [esp + 0x34], edx
test ecx, ecx
mov dword [esp + 0x24], edi
jle 0x4f276a
mov al, byte [edi + eax]
test al, al
jge 0x4f24de
cmp dword [esp + 0x20], 2
je 0x4f24e4
test al, al
jle 0x4f273d
mov byte [esp + 0x40], al
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x40]
push eax
call fcn.00557258
mov edx, dword [esp + 0x14]
mov ecx, 1
mov dword [esp + 0x20], ecx
mov al, byte [edi + edx]
test al, al
jle 0x4f2510
test edi, edi
je 0x4f2517
test al, al
jge 0x4f2519
cmp edi, 1
jne 0x4f2519
xor ecx, ecx
mov edx, dword [edx - 8]
dec edx
cmp edi, edx
jne 0x4f254c
fild dword [ebx + 0xc]
mov ecx, dword [esp + 0x1c]
sub esp, 8
fdiv qword [ecx + 0x1a8]
fmul qword [0x57f530]
fadd qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov dword [esp + 0x60], eax
jmp 0x4f256d
test ecx, ecx
jne 0x4f2568
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4f25a3
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
mov ecx, dword [eax - 8]
jmp 0x4f26ef
cmp ecx, 2
jne 0x4f257e
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4f268c
jmp 0x4f26e4
cmp ecx, 1
jne 0x4f26fb
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4f2623
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 1
mov ecx, dword [eax - 8]
jmp 0x4f26ef
cmp eax, 1
jne 0x4f25f5
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
sub eax, ecx
mov edi, ecx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
cdq
sub eax, edx
mov edx, ecx
sar ebx, 1
sar eax, 1
add edx, ebx
add eax, edx
cmp eax, ecx
jge 0x4f25d1
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
mov ecx, dword [eax - 8]
lea ebx, [esp + 0x5c]
push ebx
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x24]
jmp 0x4f26fb
cmp eax, 2
jne 0x4f26fb
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jle 0x4f2613
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
mov ecx, dword [eax - 8]
jmp 0x4f26ef
cmp eax, 1
jne 0x4f2661
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
sub eax, ecx
mov edi, ecx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
cdq
sub eax, edx
mov edx, ecx
sar ebx, 1
sar eax, 1
add edx, ebx
add eax, edx
cmp eax, ecx
jge 0x4f2651
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 1
mov ecx, dword [eax - 8]
jmp 0x4f25dc
cmp eax, 2
jne 0x4f26fb
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jle 0x4f267f
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 1
mov ecx, dword [eax - 8]
jmp 0x4f26ef
cmp eax, 1
jne 0x4f26ca
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
sub eax, ecx
mov edi, ecx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
cdq
sub eax, edx
mov edx, ecx
sar ebx, 1
sar eax, 1
add edx, ebx
add eax, edx
cmp eax, ecx
jge 0x4f26ba
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 2
mov ecx, dword [eax - 8]
jmp 0x4f25dc
cmp eax, 2
jne 0x4f26fb
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jle 0x4f26e4
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 2
mov ecx, dword [eax - 8]
lea ebx, [esp + 0x5c]
push ebx
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
fild dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x60]
sub esp, 8
mov dword [esp + 0x60], eax
fdiv qword [ecx + 0x1a8]
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x68]
add esp, 8
add ecx, eax
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov ebx, dword [ebp + 0xc]
jmp 0x4f2758
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x44], al
mov edx, dword [esp + 0x44]
inc ecx
mov dword [esp + 0x20], ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00557258
mov eax, dword [esp + 0x14]
inc edi
mov dword [esp + 0x24], edi
cmp edi, dword [eax - 8]
jl 0x4f24ce
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString
mov edi, 1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x4f237f
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x68]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x28