Function at 0x439c60
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506a24
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x541074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xf0]
push 0x3c
push 0
push eax
call fcn.004e2480
lea eax, [ebx + 0x80]
mov dword [ebp - 0xf0], 0x3c
add esp, 0xc
mov dword [ebp - 0xd0], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xdc], 1
mov dword [ebp - 0xc0], 1
jb 0x439ce4
mov eax, dword [eax]
lea ecx, [ebp - 0xf0]
push ecx
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x439d04
mov eax, 1
jmp 0x439fdc
lea ecx, [ebp - 0xa4]
call fcn.004a39d0
mov dword [ebp - 4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xb4], 0x520fe0
mov byte [ebp - 4], 1
cmp dword [ebx + 0x78], 0
jne 0x439d38
xor esi, esi
jmp 0x439d43
cmp dword [ebx + 0x7c], 0x10
lea esi, [ebx + 0x68]
jb 0x439d43
mov esi, dword [esi]
cmp dword [ebx + 0x1c], 8
jb 0x439d4e
mov ecx, dword [ebx + 8]
jmp 0x439d51
lea ecx, [ebx + 8]
cmp dword [ebx + 0x34], 8
jb 0x439d5c
mov edx, dword [ebx + 0x20]
jmp 0x439d5f
lea edx, [ebx + 0x20]
cmp dword [ebx + 0xac], 8
lea eax, [ebx + 0x98]
jb 0x439d70
mov eax, dword [eax]
push 0
push ecx
push edx
push dword [ebx + 4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
jne 0x439d8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x439d97
push eax
push esi
lea ecx, [ebp - 0xb4]
call fcn.004a46a0
push dword [ebx + 0x124]
push dword [ebx + 0x120]
push dword [ebx + 0x12c]
push dword [ebx + 0x128]
push dword [ebp - 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x439dc4
call fcn.004a43e0
mov esi, dword [ebp - 0xdc]
mov edi, dword [ebp - 0xe0]
call fcn.004066a0
push eax
push esi
push edi
lea ecx, [ebp - 0xac]
call fcn.0043a940
mov byte [ebp - 4], 2
lea eax, [ebp - 0xb4]
push dword [ebp - 0xd8]
mov esi, dword [ebp - 0xac]
lea ecx, [ebp - 0xa4]
push esi
push eax
call fcn.004a3d40
mov edi, eax
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x439e3d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439e3b
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x439e3d
call edx
test edi, edi
jne 0x439fbe
push ecx
lea ecx, [ebp - 0xa8]
call fcn.0043a890
mov byte [ebp - 4], 3
cmp dword [ebx], 2
jne 0x439e6a
push str.POST
lea ecx, [ebp - 0xa8]
call fcn.0043a840
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], vtable.CHttpRequest.0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0xc0]
mov edi, dword [ebp - 0xc4]
call fcn.004066a0
push eax
push esi
push edi
lea ecx, [ebp - 0xac]
call fcn.0043a940
mov esi, dword [ebp - 0xac]
xor eax, eax
cmp dword [ebp - 0xe4], 2
push ecx
mov ecx, 0x800000
cmove eax, ecx
lea ecx, [ebp - 0x34]
push eax
sub esp, 0xc
lea eax, [ebp - 0xa4]
push dword [ebp - 0xa8]
push esi
push eax
call fcn.004a32f0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x439f17
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439f15
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x439f17
call edx
cmp dword [ebx + 0x64], 8
lea esi, [ebx + 0x50]
jb 0x439f22
mov esi, dword [esi]
cmp dword [ebx + 0x4c], 8
lea edx, [ebx + 0x38]
jb 0x439f2d
mov edx, dword [edx]
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
jb 0x439f38
mov eax, dword [eax]
cmp dword [ebx + 0x34], 8
lea ecx, [ebx + 0x20]
jb 0x439f43
mov ecx, dword [ecx]
push esi
push edx
push eax
push ecx
push dword [ebx + 4]
lea ecx, [ebp - 0x34]
call fcn.004a3060
mov edi, eax
test edi, edi
jne 0x439f63
push ebx
lea ecx, [ebp - 0x34]
call fcn.004a3360
mov edi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x439f79
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x34]
call fcn.004a3000
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x439fbe
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x439fba
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x439fbe
mov ecx, edx
call esi
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x439fcf
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0xa4]
call fcn.004a3ae0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8882
mov esp, ebp
pop ebp
ret 4