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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54afe4
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5ca120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x30], edi
call dword [0x54e6e0]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call dword [0x54e6e4]
push str.
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::operator]
lea ecx, [ebp - 0x10]
call dword [0x54e6e0]
mov byte [ebp - 4], 2
mov edx, dword [esi]
mov eax, dword [edx + 0x78]
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x18]
mov edi, dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::AppendFormat]
push 0x5ba3a8
push ecx
lea edx, [ebp - 0x10]
push str._s_URL_Fields__s
push edx
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
add esp, 0x10
push 0x5ba3a8
push 0
push ebx
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x14]
push str.SCHEMA
push eax
lea ecx, [ebp - 0x10]
push str._s_8s:__s_s
push ecx
call edi
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
add esp, 0x18
push 0x5ba3a8
push 1
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x14]
push eax
push str.HOST
push ecx
lea edx, [ebp - 0x10]
push str._s_8s:__s_s
push edx
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
add esp, 0x18
push 0x5ba3a8
push 2
push ebx
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x14]
push str.PORT
push eax
lea ecx, [ebp - 0x10]
push str._s_8s:__s_s
push ecx
call edi
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
push 0x5ba3a8
push 3
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x14]
push eax
push str.PATH
push ecx
lea edx, [ebp - 0x10]
push str._s_8s:__s_s
push edx
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
add esp, 0x18
push 0x5ba3a8
push 4
push ebx
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x14]
push str.QUERY
push eax
lea ecx, [ebp - 0x10]
push str._s_8s:__s_s
push ecx
call edi
mov edx, dword [esi]
mov eax, dword [edx + 0x7c]
add esp, 0x18
push 0x5ba3a8
push 5
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x14]
push eax
push str.FRAGMENT
push ecx
lea edx, [ebp - 0x10]
push str._s_8s:__s_s
push edx
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
add esp, 0x18
push 0x5ba3a8
push 6
push ebx
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x14]
push str.USERINFO
push eax
lea ecx, [ebp - 0x10]
push str._s_8s:__s_s
push ecx
call edi
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
mov ecx, esi
mov dword [ebp - 0x1c], 0
call edx
mov eax, dword [ebp - 0x18]
push 0x5ba3a8
push eax
lea ecx, [ebp - 0x10]
push str._s_Request_Headers__s
push ecx
call edi
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40593a
mov edx, dword [ebp - 0x14]
push 0x5ba3a8
push edx
lea eax, [ebp - 0x10]
push str._s_no_header__s
push eax
call edi
add esp, 0x10
jmp 0x4059b9
xor ecx, ecx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.mfc100u.dll_new__]
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 3
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
push eax
push ebx
mov ecx, esi
call edx
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], eax
jbe 0x4059a8
jmp 0x405979
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax*8 + 4]
mov eax, dword [ecx + eax*8]
mov ecx, dword [ebp - 0x14]
push 0x5ba3a8
push edx
push eax
push ecx
lea edx, [ebp - 0x10]
push str._s_s:__s_s
push edx
call edi
mov eax, dword [ebp - 0x24]
inc eax
add esp, 0x18
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x1c]
jb 0x405976
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.mfc100u.dll_delete__]
add esp, 4
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
mov ecx, esi
mov dword [ebp - 0x20], 0
call edx
mov eax, dword [ebp - 0x18]
push 0x5ba3a8
push eax
lea ecx, [ebp - 0x10]
push str._s_Cookies__s
push ecx
call edi
mov eax, dword [ebp - 0x20]
add esp, 0x10
test eax, eax
jne 0x405a07
mov edx, dword [ebp - 0x14]
push 0x5ba3a8
push edx
lea eax, [ebp - 0x10]
push str._s_no_cookie__s
push eax
call edi
add esp, 0x10
jmp 0x405a82
xor ecx, ecx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.mfc100u.dll_new__]
add esp, 4
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x20]
push ecx
mov byte [ebp - 4], 4
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
push eax
push ebx
mov ecx, esi
call edx
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], eax
jbe 0x405a75
jmp 0x405a46
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax*8 + 4]
mov eax, dword [ecx + eax*8]
mov ecx, dword [ebp - 0x14]
push 0x5ba3a8
push edx
push eax
push ecx
lea edx, [ebp - 0x10]
push str._s_s:__s_s
push edx
call edi
mov eax, dword [ebp - 0x24]
inc eax
add esp, 0x18
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x20]
jb 0x405a43
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.mfc100u.dll_delete__]
add esp, 4
lea ecx, [ebp - 0x28]
call dword [0x54e6e0]
mov byte [ebp - 4], 5
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push ebx
mov ecx, esi
call eax
movzx eax, ax
mov ecx, eax
shr ecx, 8
movzx edx, cl
push edx
movzx eax, al
push eax
lea ecx, [ebp - 0x28]
push str.HTTP__d._d
push ecx
call dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::Format]
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
add esp, 0x10
push ebx
mov ecx, esi
call eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], str.true
test eax, eax
jne 0x405ada
mov dword [ebp - 0x2c], str.false
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, esi
call eax
mov dword [ebp - 0x24], str.true
test eax, eax
jne 0x405af6
mov dword [ebp - 0x24], str.false
mov ecx, dword [ebp - 0x18]
push 0x5ba3a8
push ecx
lea edx, [ebp - 0x10]
push str._s_Basic_Info__s
push edx
call edi
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
push 0x5ba3a8
push eax
push str.Version
push ecx
lea edx, [ebp - 0x10]
push str._s_13s:__s_s
push edx
call edi
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
add esp, 0x28
push 0x5ba3a8
push ebx
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x14]
push str.Method
push eax
lea ecx, [ebp - 0x10]
push str._s_13s:__s_s
push ecx
call edi
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
push 0x5ba3a8
push edx
push str.IsUpgrade
push eax
lea ecx, [ebp - 0x10]
push str._s_13s:__s_s
push ecx
call edi
mov eax, dword [ebp - 0x30]
add esp, 0x30
test eax, eax
je 0x405b95
mov edx, dword [ebp - 0x14]
push 0x5ba3a8
push eax
push str.UpgradeType
push edx
lea eax, [ebp - 0x10]
push str._s_13s:__d_s
push eax
call edi
add esp, 0x18
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
push 0x5ba3a8
push ecx
push str.IsKeepAlive
push edx
lea eax, [ebp - 0x10]
push str._s_13s:__s_s
push eax
call edi
add esp, 0x18
cmp dword [ebp + 0xc], 0
je 0x405be3
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push 0x5ba3a8
push ebx
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x14]
push edx
push eax
push str.ContentLength
push ecx
lea edx, [ebp - 0x10]
push str._s_13s:__lld_s
push edx
call edi
add esp, 0x1c
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push 0x5ba3a8
push ebx
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x14]
push str.ContentType
push eax
lea ecx, [ebp - 0x10]
push str._s_13s:__s_s
push ecx
call edi
mov esi, dword [ebp + 8]
add esp, 0x18
lea edx, [ebp - 0x10]
push edx
mov ecx, esi
call dword [0x54e6e4]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitM]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitM]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitM]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitM]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8