Function at 0x1001a880
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
push esi
push edi
mov dword [ebp - 0x174], 0xffffffff
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x288], 4
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 1
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x108], 0
mov al, byte [0x10033426]
mov byte [ebp - 0x278], al
push 0xff
push 0
lea ecx, [ebp - 0x277]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dl, byte [0x10033426]
mov byte [ebp - 0x100], dl
push 0xff
push 0
lea eax, [ebp - 0xff]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, 0xc
mov esi, str.Content_Type:_application_x_www_form_urlencoded
lea edi, [ebp - 0x2b8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x1005272c]
mov dword [ebp - 0x120], ecx
mov edx, dword [0x10052698]
mov dword [ebp - 0x11c], edx
mov eax, dword [0x1005278c]
mov dword [ebp - 0x118], eax
mov ecx, dword [0x100526c8]
mov dword [ebp - 0x114], ecx
mov edx, dword [0x100523d8]
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x10c], 0
push 0x3c
push 0
lea eax, [ebp - 0x16c]
push eax
call fcn.10019d20
add esp, 0xc
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], 0x10
lea edx, [ebp - 0x278]
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], 0x100
lea eax, [ebp - 0x100]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], 0x100
mov dword [ebp - 0x16c], 0x3c
lea ecx, [ebp - 0x16c]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [0x10052b7c]
test eax, eax
jne 0x1001aa18
mov ecx, dword [ebp + 0xc]
push ecx
push str.WininetSendHttpRequest__:_InternetCrackUrl___failed:_url_s
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
add esp, 0xc
mov eax, 0xfffffffc
jmp 0x1001aefd
lea edx, [ebp - 0x100]
push edx
lea eax, [ebp - 0x278]
push eax
movzx ecx, word [ebp - 0x154]
push ecx
lea edx, [ebp - 0x130]
push edx
push str.WininetSendHttpRequest__:_szUrlScheme_s_url_comps.nPort_u_szUrlHost_s_szUrlPath_s
call fcn.10018570
add esp, 0x14
mov dword [ebp - 0x104], 0
jmp 0x1001aa5d
mov eax, dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 2
jge 0x1001ad7c
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2c4], 0x8404f700
push 0
push 0
push 0
mov ecx, dword [ebp - 0x104]
mov edx, dword [ebp + ecx*4 - 0x284]
push edx
mov eax, dword [0x100500e4]
push eax
call dword [0x10052b68]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0
jne 0x1001aae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x2c8]
push edx
push str.WininetSendHttpRequest__:_InternetOpen___failed_err_d_i_d
mov eax, dword [ebp - 0x2c8]
push eax
call main
add esp, 0x10
jmp 0x1001aa4e
mov ecx, dword [ebp - 0x27c]
push ecx
call fcn.1001a7b0
add esp, 4
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp - 0x154]
push edx
lea eax, [ebp - 0x278]
push eax
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [0x10052b98]
mov dword [ebp - 0x170], eax
cmp dword [ebp + 0x24], 0
je 0x1001ab2d
mov edx, dword [ebp + 0x24]
push edx
call fcn.1001a270
add esp, 4
cmp dword [ebp - 0x170], 0
jne 0x1001ab87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x2cc]
push ecx
lea edx, [ebp - 0x278]
push edx
push str.WininetSendHttpRequest__:_InternetConnect___szUrlHost_s_failed_err_d_i_d
mov eax, dword [ebp - 0x2cc]
push eax
call main
add esp, 0x14
mov ecx, dword [ebp - 0x27c]
push ecx
call dword [0x10052b78]
mov dword [ebp - 0x27c], 0
jmp 0x1001aa4e
cmp dword [ebp - 0x160], 4
jne 0x1001aba2
mov edx, dword [ebp - 0x2c4]
or edx, 0x800000
mov dword [ebp - 0x2c4], edx
cmp dword [ebp + 8], 2
jne 0x1001abb4
mov dword [ebp - 0x2e8], str.POST
jmp 0x1001abbe
mov dword [ebp - 0x2e8], 0x1003d6b8
push 0
mov eax, dword [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp - 0x2e8]
push eax
mov ecx, dword [ebp - 0x170]
push ecx
call dword [0x10052b64]
mov dword [ebp - 0x108], eax
cmp dword [ebp + 0x24], 0
je 0x1001ac05
mov edx, dword [ebp + 0x24]
push edx
call fcn.1001a270
add esp, 4
cmp dword [ebp - 0x108], 0
jne 0x1001ac73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x2d0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.WininetSendHttpRequest__:_InternetOpenRequest_____s__failed_err_d_i_d
mov eax, dword [ebp - 0x2d0]
push eax
call main
add esp, 0x14
mov ecx, dword [ebp - 0x170]
push ecx
call dword [0x10052b78]
mov dword [ebp - 0x170], 0
mov edx, dword [ebp - 0x27c]
push edx
call dword [0x10052b78]
mov dword [ebp - 0x27c], 0
jmp 0x1001aa4e
cmp dword [ebp - 0x160], 4
jne 0x1001ac8b
mov eax, dword [ebp - 0x108]
push eax
call fcn.1001a710
add esp, 4
cmp dword [ebp + 8], 2
jne 0x1001acc3
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x2b8]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call dword [0x10052b9c]
mov dword [ebp - 0x2c0], eax
jmp 0x1001acde
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x108]
push eax
call dword [0x10052b9c]
mov dword [ebp - 0x2c0], eax
cmp dword [ebp + 0x24], 0
je 0x1001acf0
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.1001a270
add esp, 4
cmp dword [ebp - 0x2c0], 0
jne 0x1001ad75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2d4], eax
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x2d4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.WininetSendHttpRequest__:_fHttpSendRequest___failed._szUrl_s_err_u_i_d
mov edx, dword [ebp - 0x2d4]
push edx
call main
add esp, 0x14
mov eax, dword [ebp - 0x108]
push eax
call dword [0x10052b78]
mov dword [ebp - 0x108], 0
mov ecx, dword [ebp - 0x170]
push ecx
call dword [0x10052b78]
mov dword [ebp - 0x170], 0
mov edx, dword [ebp - 0x27c]
push edx
call dword [0x10052b78]
mov dword [ebp - 0x27c], 0
jmp 0x1001aa4e
jmp 0x1001ad7c
cmp dword [ebp - 0x108], 0
jne 0x1001ad94
mov dword [ebp - 0x174], 0xfffffffe
jmp 0x1001aeb5
mov dword [ebp - 0x288], 8
push 8
push 0
lea eax, [ebp - 0x2e0]
push eax
call fcn.10019d20
add esp, 0xc
push 0
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x2e0]
push edx
push 0x13
mov eax, dword [ebp - 0x108]
push eax
call dword [0x10052b90]
test eax, eax
jne 0x1001ae0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x2e4]
push ecx
push str.WininetSendHttpRequest__:_HttpQueryInfo___HTTP_QUERY_STATUS_CODE_failed_err_d
mov edx, dword [ebp - 0x2e4]
push edx
call main
add esp, 0xc
mov dword [ebp - 0x174], 0xfffffff8
jmp 0x1001aeb5
lea eax, [ebp - 0x2e0]
push eax
call fcn.1001a050
add esp, 4
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xc8
je 0x1001ae55
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2e0]
push edx
push str.WininetSendHttpRequest__:_Bad_HTTP_status_code:__s_szUrl_s
push 0
call main
add esp, 0x10
xor eax, eax
sub eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x174], eax
jmp 0x1001aeb5
cmp dword [ebp + 8], 2
jne 0x1001ae67
mov dword [ebp - 0x2ec], str.POST
jmp 0x1001ae71
mov dword [ebp - 0x2ec], 0x1003d6b8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2e0]
push edx
mov eax, dword [ebp - 0x2ec]
push eax
push str.WininetSendHttpRequest__:_request_sent_ok__verb_s_status_code:__s_szUrl_s
call fcn.10018570
add esp, 0x10
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp - 0x108]
mov dword [ecx], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x27c]
mov dword [eax], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x170]
mov dword [edx], eax
xor eax, eax
jmp 0x1001aefd
cmp dword [ebp - 0x108], 0
je 0x1001aecb
mov ecx, dword [ebp - 0x108]
push ecx
call dword [0x10052b78]
cmp dword [ebp - 0x170], 0
je 0x1001aee1
mov edx, dword [ebp - 0x170]
push edx
call dword [0x10052b78]
cmp dword [ebp - 0x27c], 0
je 0x1001aef7
mov eax, dword [ebp - 0x27c]
push eax
call dword [0x10052b78]
mov eax, dword [ebp - 0x174]
pop edi
pop esi
mov esp, ebp
pop ebp
ret