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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x569a90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
cmp eax, 1
mov edi, ecx
jg 0x4a2915
mov esi, dword [ebp + 0xc]
lea ebx, [esi + 0x50]
mov ecx, ebx
call sub.MFC42.DLL_CString::TrimRight
mov ecx, ebx
call sub.MFC42.DLL_CString::TrimLeft
push 0xd
mov ecx, ebx
call fcn.00557258
push 0xa
mov ecx, ebx
call fcn.00557258
mov eax, dword [ebx]
lea ecx, [esp + 0x20]
mov ebx, dword [eax - 8]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CString::CString_3
xor eax, eax
dec ebx
cmp ebx, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], ebx
jle 0x4a2904
mov ecx, dword [esi + 0x50]
mov edx, dword [esp + 0x1c]
add ecx, edx
mov al, byte [ecx]
cmp al, 0xd
je 0x4a2699
cmp byte [ecx + 1], 0xa
je 0x4a2699
mov byte [esp + 0x38], al
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x38]
push eax
call fcn.00557258
mov ecx, dword [esi + 0x50]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx + edx]
test al, al
jge 0x4a2670
cmp dword [esp + 0x14], 2
jne 0x4a266e
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], 1
inc eax
mov dword [esp + 0x28], eax
jmp 0x4a28f3
test al, al
jle 0x4a267b
inc dword [esp + 0x24]
jmp 0x4a28f3
jge 0x4a28f3
cmp dword [esp + 0x14], 1
jne 0x4a28f3
mov dword [esp + 0x14], 2
jmp 0x4a28f3
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x28]
sub eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], 1
lea ecx, [ecx + edx + 1]
cdq
idiv ecx
lea ecx, [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x3c], ebx
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
sub edx, eax
sub esp, 8
mov dword [esp + 0x34], edx
mov byte [esp + 0x80], 1
fild dword [esp + 0x34]
fdiv qword [edi + 0x100]
fmul qword [0x57f530]
fisub dword [ebp + 0x1c]
fstp qword [esp]
call fcn.004bd890
mov dword [esp + 0x4c], eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fstp qword [esp + 0x34]
fild dword [esp + 0x44]
fstp qword [esp + 0x5c]
fild dword [ebp + 0x18]
fstp qword [esp + 0x44]
fild dword [esi + 4]
fdiv qword [edi + 0x100]
fld qword [esp + 0x5c]
fdiv qword [edi + 0x100]
faddp st(1)
fld qword [esp + 0x34]
fdiv qword [edi + 0x100]
faddp st(1)
fmul qword [0x57f530]
fadd qword [esp + 0x44]
fstp qword [esp]
call fcn.004bd890
fild dword [esi + 4]
mov ebx, eax
fdiv qword [edi + 0x100]
fld qword [esp + 0x34]
fdiv qword [edi + 0x100]
faddp st(1)
fmul qword [0x57f530]
fadd qword [esp + 0x44]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x70], ebx
neg ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], ecx
add esp, 8
mov ecx, dword [eax - 8]
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x2c], ebx
jle 0x4a28e1
mov al, byte [ebx + eax]
test al, al
jge 0x4a27c3
cmp dword [esp + 0x18], 2
je 0x4a27c9
test al, al
jle 0x4a28b4
mov byte [esp + 0x48], al
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x48]
push edx
call fcn.00557258
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], 1
test eax, eax
je 0x4a285a
cmp eax, 1
jne 0x4a2840
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
sub eax, ecx
mov dword [esp + 0x3c], 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 0x4a281b
mov dword [esp + 0x64], eax
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
push 1
mov ebx, dword [ecx]
mov edx, dword [eax - 8]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
call dword [ebx + 0x70]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x64], edx
jmp 0x4a2875
cmp eax, 2
jne 0x4a2875
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x64]
cmp ecx, eax
jle 0x4a285a
mov dword [esp + 0x64], eax
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
push 1
mov ebx, dword [ecx]
mov edx, dword [eax - 8]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
call dword [ebx + 0x70]
fld qword [esp + 0x54]
fdiv qword [edi + 0x100]
mov edx, dword [esp + 0x68]
sub esp, 8
mov dword [esp + 0x68], edx
fmul qword [0x57f530]
fstp qword [esp]
call fcn.004bd890
mov ecx, dword [esp + 0x70]
add esp, 8
add ecx, eax
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov ebx, dword [esp + 0x2c]
jmp 0x4a28cf
mov edx, dword [esp + 0x18]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x4c]
inc edx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
call fcn.00557258
mov eax, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x2c], ebx
cmp ebx, dword [eax - 8]
jl 0x4a27b3
lea ecx, [esp + 0x10]
mov byte [esp + 0x78], 0
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, ebx
mov dword [esp + 0x1c], eax
jl 0x4a261c
lea ecx, [esp + 0x20]
mov dword [esp + 0x78], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x20