Function at 0x520880
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x537336
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [esi + 0xd4]
xor ebx, ebx
push eax
lea ecx, [esp + 0x28]
xor edi, edi
mov dword [esp + 0x18], ebx
call sub.mfc90u.dll_CSingleLock::CSingleLock
mov dword [esp + 0x34], edi
cmp dword [esi + 0xa8], edi
jne 0x5209f7
mov eax, dword [esi + 0x68]
sub eax, edi
je 0x52099d
sub eax, 1
je 0x520949
sub eax, 1
jne 0x5209f7
mov ecx, dword [esi + 0x58]
mov ecx, dword [ecx - 0xc]
lea eax, [esi + 0x58]
cmp ecx, edi
jne 0x520919
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 0x10]
push eax
lea ecx, [esp + 0x18]
call dword [0x55a504]
mov byte [esp + 0x34], 3
mov ebx, 4
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 0x44]
mov eax, dword [eax]
push edi
push edi
push ecx
push 3
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0xa8], eax
mov dword [esp + 0x34], edi
test bl, 4
je 0x5209f7
and ebx, 0xfffffffb
lea ecx, [esp + 0x14]
jmp 0x5209ed
mov edx, dword [esi + 0x58]
mov ecx, dword [edx - 0xc]
lea eax, [esi + 0x58]
cmp ecx, edi
jne 0x520977
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 0x10]
push eax
lea ecx, [esp + 0x1c]
call dword [0x55a504]
mov byte [esp + 0x34], 2
mov ebx, 2
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
push edi
push edi
push edi
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0xa8], eax
mov dword [esp + 0x34], edi
test bl, 2
je 0x5209f7
and ebx, 0xfffffffd
lea ecx, [esp + 0x18]
jmp 0x5209ed
mov ecx, dword [esi + 0x58]
lea eax, [esi + 0x58]
cmp dword [ecx - 0xc], edi
jne 0x5209c9
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 0x10]
push eax
lea ecx, [esp + 0x20]
call dword [0x55a504]
mov byte [esp + 0x34], 1
mov ebx, 1
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0xa8], eax
mov dword [esp + 0x34], edi
test bl, 1
je 0x5209f7
and ebx, 0xfffffffe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], ebx
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 eax, dword [esi + 0xa8]
cmp eax, edi
jne 0x520a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x20]
push 0x3ed
mov ecx, esi
call eax
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CSingleLock::Unlock
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
push 0x521e00
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
or edi, 0xffffffff
cmp eax, edi
jne 0x520a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x20]
push 0x3ed
mov ecx, esi
call eax
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CSingleLock::Unlock
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CSingleLock::Unlock
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret