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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x559510
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 0x413cb5
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 0x413ca4
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 0x413909
cmp byte [ecx + 1], 0xa
je 0x413909
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 0x4138e1
cmp dword [esp + 0x18], 2
jne 0x4138df
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], edi
inc eax
mov dword [esp + 0x30], eax
jmp 0x413c8f
test al, al
jle 0x4138ec
inc dword [esp + 0x2c]
jmp 0x413c8f
jge 0x413c8f
cmp dword [esp + 0x18], edi
jne 0x413c8f
mov dword [esp + 0x18], 2
jmp 0x413c8f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea ecx, [eax + ecx - 1]
test ecx, ecx
je 0x413928
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
sub eax, edx
cdq
idiv ecx
mov edi, eax
jmp 0x413930
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 + 0xd0]
fild dword [ebx + 4]
fdiv qword [eax + 0xd0]
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 + 0xd0]
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 0x413c7c
mov al, byte [edi + eax]
test al, al
jge 0x4139f0
cmp dword [esp + 0x20], 2
je 0x4139f6
test al, al
jle 0x413c4f
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 0x413a22
test edi, edi
je 0x413a29
test al, al
jge 0x413a2b
cmp edi, 1
jne 0x413a2b
xor ecx, ecx
mov edx, dword [edx - 8]
dec edx
cmp edi, edx
jne 0x413a5e
fild dword [ebx + 0xc]
mov ecx, dword [esp + 0x1c]
sub esp, 8
fdiv qword [ecx + 0xd0]
fmul qword [0x57f530]
fadd qword [esp + 0x54]
fstp qword [esp]
call fcn.004bd890
add esp, 8
mov dword [esp + 0x60], eax
jmp 0x413a7f
test ecx, ecx
jne 0x413a7a
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x413ab5
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
mov ecx, dword [eax - 8]
jmp 0x413c01
cmp ecx, 2
jne 0x413a90
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x413b9e
jmp 0x413bf6
cmp ecx, 1
jne 0x413c0d
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x413b35
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 1
mov ecx, dword [eax - 8]
jmp 0x413c01
cmp eax, 1
jne 0x413b07
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 0x413ae3
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 0x413c0d
cmp eax, 2
jne 0x413c0d
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jle 0x413b25
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 0
mov ecx, dword [eax - 8]
jmp 0x413c01
cmp eax, 1
jne 0x413b73
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 0x413b63
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 1
mov ecx, dword [eax - 8]
jmp 0x413aee
cmp eax, 2
jne 0x413c0d
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jle 0x413b91
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 1
mov ecx, dword [eax - 8]
jmp 0x413c01
cmp eax, 1
jne 0x413bdc
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 0x413bcc
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push 2
mov ecx, dword [eax - 8]
jmp 0x413aee
cmp eax, 2
jne 0x413c0d
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jle 0x413bf6
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 + 0xd0]
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 0x413c6a
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 0x4139e0
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 0x413891
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