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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x568dd0
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 0x49a155
mov ebx, dword [ebp + 0xc]
lea esi, [ebx + 0x50]
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov ecx, esi
call sub.MFC42.DLL_CString::TrimLeft
push 0xd
mov ecx, esi
call fcn.00557258
push 0xa
mov ecx, esi
call fcn.00557258
mov eax, dword [esi]
lea ecx, [esp + 0x14]
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 0x49a144
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 0x499da9
cmp byte [ecx + 1], 0xa
je 0x499da9
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 0x499d81
cmp dword [esp + 0x18], 2
jne 0x499d7f
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], edi
inc eax
mov dword [esp + 0x30], eax
jmp 0x49a12f
test al, al
jle 0x499d8c
inc dword [esp + 0x2c]
jmp 0x49a12f
jge 0x49a12f
cmp dword [esp + 0x18], edi
jne 0x49a12f
mov dword [esp + 0x18], 2
jmp 0x49a12f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea ecx, [eax + ecx - 1]
test ecx, ecx
je 0x499dc8
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
sub eax, edx
cdq
idiv ecx
mov edi, eax
jmp 0x499dd0
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 + 0x100]
fild dword [ebx + 4]
fdiv qword [eax + 0x100]
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 + 0x100]
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 0x49a11c
mov al, byte [edi + eax]
test al, al
jge 0x499e90
cmp dword [esp + 0x20], 2
je 0x499e96
test al, al
jle 0x49a0ef
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 0x499ec2
test edi, edi
je 0x499ec9
test al, al
jge 0x499ecb
cmp edi, 1
jne 0x499ecb
xor ecx, ecx
mov edx, dword [edx - 8]
dec edx
cmp edi, edx
jne 0x499efe
fild dword [ebx + 0xc]
mov ecx, dword [esp + 0x1c]
sub esp, 8
fdiv qword [ecx + 0x100]
fmul qword [0x57f530]
fadd qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov dword [esp + 0x60], eax
jmp 0x499f1f
test ecx, ecx
jne 0x499f1a
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x499f55
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
mov ecx, dword [eax - 8]
jmp 0x49a0a1
cmp ecx, 2
jne 0x499f30
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x49a03e
jmp 0x49a096
cmp ecx, 1
jne 0x49a0ad
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x499fd5
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 1
mov ecx, dword [eax - 8]
jmp 0x49a0a1
cmp eax, 1
jne 0x499fa7
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 0x499f83
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 0x49a0ad
cmp eax, 2
jne 0x49a0ad
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jle 0x499fc5
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
mov ecx, dword [eax - 8]
jmp 0x49a0a1
cmp eax, 1
jne 0x49a013
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 0x49a003
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 1
mov ecx, dword [eax - 8]
jmp 0x499f8e
cmp eax, 2
jne 0x49a0ad
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jle 0x49a031
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 1
mov ecx, dword [eax - 8]
jmp 0x49a0a1
cmp eax, 1
jne 0x49a07c
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 0x49a06c
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 2
mov ecx, dword [eax - 8]
jmp 0x499f8e
cmp eax, 2
jne 0x49a0ad
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jle 0x49a096
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 + 0x100]
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 0x49a10a
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 0x499e80
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 0x499d31
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