Function at 0x1000486a
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
mov esi, dword [0x1000c018]
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 8]
lea ebx, [ebp - 0xc]
push dword [esi + 4]
mov dword [ebp - 0x1c], edi
push dword [esi + 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edi
call fcn.10003ccd
test al, al
jne 0x100048cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__d_n
push 0x3d6
call fcn.10002038
add esp, 0xc
jmp 0x10004c62
push 0x400
push 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x100048ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__d_n
push 0x3de
call fcn.10002038
add esp, 0xc
jmp 0x10004c56
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT.dll_memcpy]
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [esi]
mov byte [ebp - 0x20], 3
call fcn.10001733
add esp, 0xc
cmp eax, 0xffffffff
jne 0x10004945
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__d_n
push 0x3ec
jmp 0x10004a2b
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
call ebx
pop ecx
inc eax
push eax
push 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp + 0x10], eax
cmp eax, edi
jne 0x1000497a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__d_n
push 0x3f6
jmp 0x10004a2b
push dword [ebp + 0xc]
call ebx
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcstombs]
mov ebx, dword [sym.imp.MSVCRT.dll_strlen]
add esp, 0xc
push dword [ebp + 0x10]
call ebx
pop ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_memcpy]
lea eax, [ebp - 0x430]
add esp, 0xc
push eax
call ebx
pop ecx
push eax
lea eax, [ebp - 0x430]
push eax
push dword [ebp + 0x10]
call ebx
add eax, dword [ebp + 8]
pop ecx
push eax
call dword [sym.imp.MSVCRT.dll_memcpy]
add esp, 0xc
push dword [ebp + 0x10]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 8]
push 0x1000a410
push 0x3fe
push str.LINE
call fcn.10001ead
add esp, 0x10
push edi
push 0x8468fb00
push edi
push edi
push str.HTTP_1.0
push dword [ebp + 8]
push 0x1000a428
push dword [ebp - 0xc]
call dword [esi + 0x44]
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x10004a38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__d_n
push 0x409
call fcn.10002038
add esp, 0xc
jmp 0x10004c4a
push edi
push edi
push edi
push edi
push eax
call dword [esi + 0x48]
test eax, eax
jne 0x10004a5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_HttpSendRequestA_GetLastError___d_n
push 0x410
call fcn.10002038
jmp 0x10004c41
push 4
pop ebx
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000013
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
call dword [esi + 0x4c]
test eax, eax
jne 0x10004a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__d_n
push 0x423
jmp 0x10004a55
cmp dword [ebp - 8], 0x194
je 0x10004aa8
push dword [ebp - 8]
push str._Error_uiStatusCode___d_n
push 0x429
jmp 0x10004a55
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000005
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
call dword [esi + 0x4c]
test eax, eax
jne 0x10004ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__d_n
push 0x430
jmp 0x10004a55
cmp dword [ebp - 0x18], edi
jne 0x10004aee
push edi
push str._Error_uiContentLength___d_n
push 0x436
jmp 0x10004a55
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.10003fc7
mov dword [ebp + 0x10], eax
cmp eax, edi
jne 0x10004b11
push edi
push str._Error_dwBlockReceiveLength___d_n
push 0x43d
jmp 0x10004a55
push eax
push dword [ebp - 0x18]
push dword [ebp - 8]
push str.__7d__7d__7d_n
push 0x441
call fcn.10002038
add esp, 0x14
push 0x10
push 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x10004b5e
cmp dword [ebp - 4], edi
je 0x10004b52
push dword [ebp - 4]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10004c44
push str._HeapFree__NULL_n
push 0x448
jmp 0x10004bc4
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
push dword [ebp - 4]
mov dword [ebp + 0x14], eax
call fcn.10006022
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
push 0x10
lea eax, [eax + ecx - 0x10]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_memcmp]
add esp, 0x14
test eax, eax
je 0x10004bcd
push str._Error_Bad_Hash_n
push 0x44f
call fcn.10002038
pop ecx
pop ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push dword [esi]
call ebx
cmp dword [ebp - 4], edi
je 0x10004bba
push dword [ebp - 4]
push edi
push dword [esi]
call ebx
jmp 0x10004c44
push str._HeapFree__NULL_n
push 0x451
call fcn.10002038
pop ecx
pop ecx
jmp 0x10004c44
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push dword [esi]
call ebx
cmp dword [ebp + 0x14], 4
push 0x1000a57c
jne 0x10004c1b
push str.__15s_t___NO_TASK_n
push 0x45d
call fcn.10002038
add esp, 0xc
cmp dword [ebp - 4], edi
je 0x10004c05
push dword [ebp - 4]
push edi
push dword [esi]
call ebx
jmp 0x10004c16
push str._HeapFree__NULL_n
push 0x45e
call fcn.10002038
pop ecx
pop ecx
mov dword [ebp - 0x10], edi
jmp 0x10004c44
push str.__15s_t__RECEIVE_TASK_n
push 0x462
call fcn.10002038
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 1
mov dword [eax], ecx
add esp, 0xc
push dword [ebp + 0xc]
call dword [esi + 0x24]
push dword [ebp + 8]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1c]
call dword [esi + 0x24]
push dword [ebp - 0xc]
call dword [esi + 0x24]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x18