Function at 0x5120f0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53ff7d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
push edi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 0
jne 0x512371
mov ebx, dword [0x5c7008]
lea eax, [esp + 0x20]
push eax
push 0
push str.NL_Proxy_Enable
call fcn.00514350
mov ebx, dword [0x5c7008]
lea ecx, [esp + 0x24]
push ecx
push 0
push str.NL_Proxy_Type
call fcn.00514350
mov eax, dword [esp + 0x24]
cmp eax, 1
jle 0x512170
sub eax, 2
cmp dword [esp + 0x20], 1
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
jne 0x512301
cmp eax, 3
jne 0x512301
lea ecx, [esp + 0x24]
call dword [0x55a6c4]
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x20]
call dword [0x55a6c4]
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x1c]
call dword [0x55a6c4]
mov byte [esp + 0x48], 2
lea ecx, [esp + 0x18]
call dword [0x55a6c4]
mov byte [esp + 0x48], 3
lea ecx, [esp + 0x14]
call dword [0x55a6c4]
mov byte [esp + 0x48], 4
mov ebx, dword [0x5c7008]
lea edx, [esp + 0x24]
push edx
push 0x55ae9c
push str.NL_Proxy_Host
call fcn.00513fa0
mov ebx, dword [0x5c7008]
lea eax, [esp + 0x1c]
push eax
push 0x55ae9c
push str.NL_Proxy_User
call fcn.00513fa0
mov ebx, dword [0x5c7008]
lea ecx, [esp + 0x18]
push ecx
push 0x55ae9c
push str.NL_Proxy_Pass
call fcn.00513fa0
mov ebx, dword [0x5c7008]
lea edx, [esp + 0x20]
push edx
push 0x55ae9c
push str.NL_Proxy_Port
call fcn.00513fa0
mov ebx, dword [0x5c7008]
lea eax, [esp + 0x28]
push eax
push 0
push str.NL_Proxy_Auth
call fcn.00514350
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x58cec4
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov ecx, dword [esp + 0x24]
add esp, 0x10
xor ebx, ebx
push ebx
push ebx
push ecx
push 3
push str.Mozilla_6.0__compatile__WTW_Network_Agent_1.0__U__
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
cmp dword [esp + 0x28], ebx
je 0x5122b2
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 0xc]
push edx
push ecx
push 0x2c
push eax
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [esi + 4]
push ecx
push eax
push 0x2b
push edx
call edi
mov byte [esp + 0x48], 3
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x48], 2
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x48], 1
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x512319
push 0
push 0
push 0
push 4
push str.Mozilla_6.0__compatile__WTW_Network_Agent_1.0__U__
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
xor ebx, ebx
mov ecx, dword [esi + 4]
push 8
lea eax, [esp + 0x38]
push eax
push 0x32
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], 1
call edi
mov ecx, dword [esi + 4]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x14]
push eax
push 0x1f
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov eax, dword [esi + 4]
or dword [esp + 0x10], 0x180
push 4
lea edx, [esp + 0x14]
push edx
push 0x1f
push eax
call edi
mov edi, dword [esp + 0x30]
mov esi, dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret