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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1765
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x65db30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], 0
call dword [0x5d57b0]
lea eax, [ebp - 0x14]
mov ebx, 1
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call dword [0x5d57b4]
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::operator]
mov ecx, edi
call dword [0x5d57b0]
mov edx, dword [esi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x78]
push eax
mov ecx, esi
mov dword [ebp - 0x28], ebx
call edx
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::AppendFormat]
push 0x6468cc
push eax
push str._s_URL_Fields__s
push edi
call ebx
mov edx, dword [esi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x7c]
add esp, 0x10
push 0x6468e4
push 0
push eax
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x10]
push str.SCHEMA
push eax
push 0x6468f0
push edi
call ebx
mov edx, dword [esi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x7c]
add esp, 0x18
push 0x6468fc
push 1
push eax
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x10]
push str.HOST
push eax
push 0x646908
push edi
call ebx
mov edx, dword [esi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x7c]
add esp, 0x18
push 0x646914
push 2
push eax
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x10]
push str.PORT
push eax
push 0x646920
push edi
call ebx
mov edx, dword [esi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x7c]
add esp, 0x18
push 0x64692c
push 3
push eax
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x10]
push str.PATH
push eax
push 0x646938
push edi
call ebx
mov edx, dword [esi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x7c]
add esp, 0x18
push 0x646944
push 4
push eax
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x10]
push str.QUERY
push eax
push 0x646950
push edi
call ebx
mov edx, dword [esi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x7c]
add esp, 0x18
push 0x64695c
push 5
push eax
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x10]
push str.FRAGMENT
push eax
push 0x64696c
push edi
call ebx
mov edx, dword [esi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x7c]
add esp, 0x18
push 0x646978
push 6
push eax
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x10]
push str.USERINFO
push eax
push str._s_8s:__s_s
push edi
call ebx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
push 0
push ecx
mov ecx, esi
mov dword [ebp - 0x18], 0
call edx
mov eax, dword [ebp - 0x14]
push 0x646994
push eax
push str._s_Request_Headers__s
push edi
call ebx
mov eax, dword [ebp - 0x18]
add esp, 0x10
test eax, eax
jne 0x40c11f
mov ecx, dword [ebp - 0x10]
push 0x6469b0
push ecx
push str._s_no_header__s
push edi
call ebx
add esp, 0x10
jmp 0x40c1a0
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 - 0x24], eax
lea ecx, [ebp - 0x18]
push ecx
mov byte [ebp - 4], 3
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, esi
call edx
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [ebp - 0x18], eax
jbe 0x40c18f
jmp 0x40c163
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*8 + 4]
mov eax, dword [ecx + eax*8]
mov ecx, dword [ebp - 0x10]
push 0x6469c4
push edx
push eax
push ecx
push 0x6469c8
push edi
call ebx
mov eax, dword [ebp + 0x10]
inc eax
add esp, 0x18
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x18]
jb 0x40c160
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.mfc100u.dll_delete__]
add esp, 4
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x48]
lea ecx, [ebp - 0x1c]
push ecx
push 0
push edx
mov ecx, esi
mov dword [ebp - 0x1c], 0
call eax
mov ecx, dword [ebp - 0x14]
push 0x6469d4
push ecx
push str._s_Cookies__s
push edi
call ebx
mov eax, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
jne 0x40c1ee
mov edx, dword [ebp - 0x10]
push 0x6469e8
push edx
push str._s_no_cookie__s
push edi
call ebx
add esp, 0x10
jmp 0x40c26c
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 - 0x24], eax
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 4
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, esi
call edx
xor eax, eax
mov dword [ebp + 0x10], eax
cmp dword [ebp - 0x1c], eax
jbe 0x40c25f
jmp 0x40c233
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*8 + 4]
mov eax, dword [ecx + eax*8]
mov ecx, dword [ebp - 0x10]
push 0x6469fc
push edx
push eax
push ecx
push str._s_s:__s_s
push edi
call ebx
mov eax, dword [ebp + 0x10]
inc eax
add esp, 0x18
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x1c]
jb 0x40c230
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.mfc100u.dll_delete__]
add esp, 4
lea ecx, [ebp - 0x20]
call dword [0x5d57b0]
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 5
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, esi
call edx
movzx eax, ax
mov ecx, eax
shr ecx, 8
movzx edx, cl
push edx
movzx eax, al
push eax
lea ecx, [ebp - 0x20]
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 [ebp + 0xc]
mov edx, dword [edx + 0x2c]
add esp, 0x10
push eax
mov ecx, esi
call edx
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x10], 0x646a0c
test eax, eax
jne 0x40c2ca
mov dword [ebp + 0x10], 0x646a14
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
mov dword [ebp - 0x24], str.true
test eax, eax
jne 0x40c2e9
mov dword [ebp - 0x24], str.false
mov eax, dword [ebp - 0x14]
push 0x646a2c
push eax
push str._s_Basic_Info__s
push edi
call ebx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
push 0x646a44
push ecx
push str.Version
push edx
push 0x646a50
push edi
call ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
add esp, 0x28
push 0x646a60
push ecx
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x10]
push str.Method
push eax
push 0x646a6c
push edi
call ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
push 0x646a7c
push ecx
push str.IsUpgrade
push edx
push 0x646a8c
push edi
call ebx
mov eax, dword [ebp - 0x2c]
add esp, 0x30
test eax, eax
je 0x40c37c
push 0x646a9c
push eax
mov eax, dword [ebp - 0x10]
push str.UpgradeType
push eax
push str._s_13s:__d_s
push edi
call ebx
add esp, 0x18
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
push 0x646abc
push ecx
push str.IsKeepAlive
push edx
push 0x646acc
push edi
call ebx
add esp, 0x18
cmp dword [ebp + 0x14], 0
je 0x40c3c7
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
push 0x646adc
push ecx
mov ecx, esi
call edx
push edx
push eax
mov eax, dword [ebp - 0x10]
push str.ContentLength
push eax
push str._s_13s:__lld_s
push edi
call ebx
add esp, 0x1c
mov edx, dword [esi]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x20]
push 0x646b00
push eax
mov ecx, esi
call edx
push eax
mov eax, dword [ebp - 0x10]
push str.ContentType
push eax
push str._s_13s:__s_s
push edi
call ebx
add esp, 0x18
lea ecx, [ebp - 0x20]
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]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10