Function at 0x415c90
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e75d8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x53f1e4]
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 eax, dword [ebp + 8]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, edx
mov dword [ebp - 0x68], eax
mov eax, dword [edi + 0xc]
xor esi, esi
mov dword [ebp - 0x6c], ecx
cmp eax, esi
je 0x415cdb
push eax
call ebx
mov dword [edi + 0xc], esi
mov eax, dword [edi + 8]
cmp eax, esi
je 0x415ce8
push eax
call ebx
mov dword [edi + 8], esi
mov eax, dword [edi + 4]
cmp eax, esi
je 0x415cf5
push eax
call ebx
mov dword [edi + 4], esi
push esi
push esi
push esi
push esi
push 0x507ea8
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 4], eax
cmp eax, esi
jne 0x415d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x507ee0
push 0x508050
add edi, 0x20
call fcn.00408a70
add esp, 0xc
xor al, al
jmp 0x415ee0
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
push edx
mov edx, dword [edi + 0x14]
push ecx
push edx
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], cx
mov dword [ebp - 4], esi
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 0x50], eax
xor eax, eax
mov word [ebp - 0x64], ax
mov eax, ebx
mov dword [ebp - 0x54], esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x415d80
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x64]
call fcn.00404960
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x2c]
lea ebx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040af20
mov ebx, 8
add esp, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], ebx
jb 0x415dcd
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b1c22
add esp, 4
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x415dd8
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x68]
mov edx, dword [edi + 4]
push esi
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 8], eax
cmp eax, esi
jne 0x415e44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConnectHttpServer
push 0x508050
add edi, 0x20
call fcn.00408a70
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jb 0x415e1c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1c22
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], ebx
jb 0x415e3d
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b1c22
add esp, 4
xor al, al
jmp 0x415ee0
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x415e4f
lea ecx, [ebp - 0x2c]
push esi
push esi
push esi
push esi
push ecx
push 0x507f04
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [edi + 0xc], eax
cmp eax, esi
jne 0x415e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateHttpRequest
jmp 0x415dfb
mov edx, dword [ebp - 0x6c]
push edi
call fcn.00415f00
test al, al
jne 0x415eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SendHttpRequest
push 0x508050
add edi, 0x20
call fcn.00408a70
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00404a50
lea ecx, [ebp - 0x48]
call fcn.00404a50
xor al, al
jmp 0x415ee0
mov eax, dword [edi + 0xc]
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x415ece
push 0x508014
push edi
call fcn.00415f60
jmp 0x415e9e
lea ecx, [ebp - 0x2c]
call fcn.00404a50
lea ecx, [ebp - 0x48]
call fcn.00404a50
mov al, 1
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.004b1c2d
mov esp, ebp
pop ebp
ret 4