Function at 0x10005930
Capabilities:
Check http status code
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009dc48
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x30], esi
push 4
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x70], 0
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push esi
mov dword [esp + 0x24], 0x1388
call ebx
push 4
lea ecx, [esp + 0x18]
push ecx
push 3
push esi
mov dword [esp + 0x24], 3
call ebx
mov ebx, 8
cmp dword [edi + 0x18], ebx
mov dword [esp + 0x18], 0
jb 0x100059e2
mov edi, dword [edi + 4]
jmp 0x100059e5
add edi, 4
push 0x4400000
push esi
lea edx, [esp + 0x28]
push edx
call fcn.100299e0
mov byte [esp + 0x68], 1
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], eax
je 0x10005a47
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
push edx
push 0x20000013
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [esp + 0x18]
cmp eax, 0xc8
je 0x10005a8a
cmp eax, 0x12e
je 0x10005a8a
cmp eax, 0x12d
je 0x10005a8a
cmp eax, 0x133
je 0x10005a8a
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10005a66
test eax, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
jne 0x10005a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10005a71
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [esp + 0x20]
call fcn.10029ff0
lea esi, [esp + 0x30]
call fcn.10004ef0
xor al, al
jmp 0x10005b5a
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.10010aa0
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x74], 2
call fcn.10009080
add esp, 0xc
test al, al
jne 0x10005abc
lea edx, [esp + 0x3c]
push edx
call fcn.100091c0
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
lea ecx, [esp + 0x24]
push edi
push ecx
mov ecx, dword [esp + 0x44]
call fcn.100063a0
add esp, 0xc
cmp dword [esp + 0x54], ebx
mov byte [esp + 0x13], al
jb 0x10005aed
mov edx, dword [esp + 0x40]
push edx
call fcn.10079508
add esp, 4
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
je 0x10005b11
push eax
call edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x10005b1c
push eax
call edi
cmp dword [esp + 0x20], ebx
je 0x10005b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x20]
push eax
call edi
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10005b56
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1007a1bc
mov esp, ebp
pop ebp
ret