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

Disassembly:
push 0xffffffffffffffff
push 0x45c328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 4]
mov dword [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x70]
lea ecx, [esp + 8]
push eax
mov bl, 5
push 0x46e144
push ecx
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::TrimLeft
lea edx, [esp + 0x70]
push 4
push edx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x6c], 6
call fcn.0045b232
lea ecx, [esp + 0x70]
mov byte [esp + 0x68], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 4]
push str.HTTP
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x406267
push str._r_n_r_n
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x4062ce
lea ecx, [esp + 0xc]
mov byte [esp + 0x68], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret
push ebp
push esi
add eax, 4
push edi
lea ecx, [esp + 0x7c]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 7
call fcn.0045b232
lea ecx, [esp + 0x7c]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea edx, [esp + 0x7c]
push 3
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 8
call fcn.0045b232
lea ecx, [esp + 0x7c]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov edi, dword [esp + 0x84]
add esp, 4
mov esi, eax
mov ecx, dword [edi + 0x5414]
call sub.MFC42.DLL_CPtrList::RemoveAll
mov dword [edi + 0x5410], esi
sub esi, 0xc8
je 0x406742
sub esi, 0xb
jne 0x406a1c
push 0x46e148
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
add eax, 2
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 0x10
call fcn.0045b232
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
push 0x46e148
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
lea edx, [esp + 0x7c]
push eax
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0x11
call fcn.0045b232
lea ecx, [esp + 0x7c]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov al, byte [eax]
cmp al, 0x2e
je 0x406a1c
push 0x682
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 0x1a0
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, dword [esp + 0x10]
push 0x400
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], edx
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x30]
mov esi, eax
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x20
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jle 0x4065e5
lea ecx, [esp + 0x34]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 0x12
call fcn.0045b232
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
inc esi
lea edx, [esp + 0x38]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0x13
call fcn.0045b232
lea ecx, [esp + 0x38]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
push 0x20
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jle 0x4065e5
lea eax, [esp + 0x3c]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 0x14
call fcn.0045b232
lea ecx, [esp + 0x3c]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
inc esi
lea ecx, [esp + 0x40]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0x15
call fcn.0045b232
lea ecx, [esp + 0x40]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
push 0x2f
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jle 0x4065c4
lea edx, [esp + 0x44]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 0x16
call fcn.0045b232
lea ecx, [esp + 0x44]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::TrimRight
inc esi
lea eax, [esp + 0x48]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0x17
call fcn.0045b232
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimRight
jmp 0x4065e5
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0045b232
push eax
lea ecx, [esp + 0x20]
call fcn.0045b232
mov edx, dword [esp + 0x1c]
push 0x100
lea ecx, [esp + 0x20]
mov eax, dword [edx - 8]
mov dword [esp + 0x34], eax
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x30]
mov esi, eax
mov edx, ecx
lea edi, [ebp + 0x464]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x100
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x30]
mov esi, eax
mov edx, ecx
lea edi, [ebp + 0x564]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x64
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x30]
mov esi, eax
mov edx, ecx
lea edi, [ebp + 0x400]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x1e
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 8]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x30]
mov esi, eax
mov edx, ecx
lea edi, [ebp + 0x664]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x80]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 0x5414]
call sub.MFC42.DLL_CPtrList::AddTail
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x4c]
add ecx, 2
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x78], 0x18
call fcn.0045b232
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
push 0x46e148
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
mov dword [esp + 0x28], eax
push eax
lea eax, [esp + 0x80]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0x11
call fcn.0045b232
lea ecx, [esp + 0x7c]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0x2e
jne 0x4063f8
jmp 0x406a1c
lea edx, [esp + 0x50]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 9
call fcn.0045b232
lea ecx, [esp + 0x50]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
push 0x682
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov ecx, 0x1a0
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
call sub.MFC42.DLL_CString::TrimLeft
mov eax, dword [esp + 0x10]
push 0x400
mov ecx, dword [eax - 8]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x30]
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x20
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jle 0x40695b
lea eax, [esp + 0x54]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x78], 0xa
call fcn.0045b232
lea ecx, [esp + 0x54]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
inc esi
lea ecx, [esp + 0x58]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0xb
call fcn.0045b232
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
push 0x20
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jle 0x40695b
lea edx, [esp + 0x5c]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 0xc
call fcn.0045b232
lea ecx, [esp + 0x5c]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
inc esi
lea eax, [esp + 0x60]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 0xd
call fcn.0045b232
lea ecx, [esp + 0x60]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
push 0x2f
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
test esi, esi
jle 0x40693a
lea ecx, [esp + 0x64]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 0xe
call fcn.0045b232
lea ecx, [esp + 0x64]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::TrimRight
inc esi
lea edx, [esp + 0x68]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 0xf
call fcn.0045b232
lea ecx, [esp + 0x68]
mov byte [esp + 0x74], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimRight
jmp 0x40695b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.0045b232
push eax
lea ecx, [esp + 0x20]
call fcn.0045b232
mov ecx, dword [esp + 0x1c]
push 0x100
mov ebx, dword [ecx - 8]
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, ebx
mov esi, eax
mov edx, ecx
lea edi, [ebp + 0x464]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x100
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov ebx, dword [eax - 8]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, ebx
mov esi, eax
mov edx, ecx
lea edi, [ebp + 0x564]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x64
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov ebx, dword [eax - 8]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, ebx
mov esi, eax
mov edx, ecx
lea edi, [ebp + 0x400]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x1e
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
mov ebx, dword [eax - 8]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, ebx
mov esi, eax
mov edx, ecx
lea edi, [ebp + 0x664]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x80]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 0x5414]
call sub.MFC42.DLL_CPtrList::AddTail
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x74], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x74], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret