Function at 0x4343c0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60016c
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6a3000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2e8], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x2cc], ebx
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp - 0x278], ebx
push eax
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x2d8], ebx
call fcn.004123f0
lea edi, [eax + 0x10]
mov dword [ebp - 0x220], edi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2c4]
push 0xc
mov dword [eax], ebx
call fcn.00482e20
add esp, 8
test eax, eax
je 0x434477
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x434479
xor eax, eax
mov ecx, dword [ebp - 0x2c4]
mov dword [ecx], eax
xor al, al
mov dword [ebp - 0x2e4], 3
mov byte [ebp - 0x2bd], al
xor ecx, ecx
mov dword [ebp - 0x2e0], ecx
cmp ecx, 2
jge 0x4349c9
test al, al
jne 0x4349c9
nop dword [eax]
push 0
push 0
push 0
push 0
push str.A_WinHTTP_Example_Program_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x2c8], ebx
test ebx, ebx
je 0x434a2e
mov edx, 1
mov dword [ebp - 0x278], 4
push 1
mov dword [ebp - 0x234], 0xa0
lea ecx, [edx + 5]
call fcn.004320b0
add esp, 4
test al, al
je 0x434507
or dword [ebp - 0x234], 0xa00
push 4
lea eax, [ebp - 0x234]
push eax
push 0x54
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x434ac2
xorps xmm0, xmm0
mov dword [ebp - 0x2b8], 0
lea eax, [ebp - 0x2bc]
movlpd qword [ebp - 0x2b0], xmm0
push eax
push 0
movlpd qword [ebp - 0x2a4], xmm0
movlpd qword [ebp - 0x29c], xmm0
movlpd qword [ebp - 0x294], xmm0
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x2bc], 0x3c
mov dword [ebp - 0x2b4], 0xffffffff
mov dword [ebp - 0x2a8], 0xffffffff
mov dword [ebp - 0x28c], 0xffffffff
mov dword [ebp - 0x284], 0xffffffff
push dword [edi - 0xc]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
mov esi, dword [ebp - 0x2ac]
mov ebx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2d4], esi
mov byte [ebp - 4], 9
call fcn.00483151
mov ecx, eax
mov byte [ebp - 4], 2
test ecx, ecx
je 0x434b56
test esi, esi
jne 0x4345d2
test ebx, ebx
jne 0x434b60
mov eax, dword [ecx]
push 2
push ebx
call dword [eax]
test eax, eax
je 0x434b6a
lea esi, [eax + 0x10]
mov dword [ebp - 0x264], esi
test ebx, ebx
js 0x434b60
cmp ebx, dword [esi - 8]
jg 0x434b60
mov dword [esi - 0xc], ebx
xor eax, eax
add ebx, ebx
mov word [esi + ebx], ax
test ebx, ebx
je 0x434640
test esi, esi
je 0x434630
mov eax, dword [ebp - 0x2d4]
push ebx
test eax, eax
je 0x434625
push eax
push esi
call fcn.005cfab0
add esp, 0xc
jmp 0x434640
push 0
push esi
call fcn.005d0030
add esp, 0xc
call fcn.005dd640
mov dword [eax], 0x16
call fcn.005dd51a
push 0
mov byte [ebp - 4], 0xa
push dword [ebp - 0x2a4]
push esi
mov esi, dword [ebp - 0x2c8]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0x2d0], ecx
test ecx, ecx
je 0x434b6f
cmp dword [ebp - 0x2b0], 2
mov edx, 0x800100
mov eax, 0x100
cmove eax, edx
push eax
push 0
push 0
push 0
push dword [ebp - 0x290]
push 0x66eb40
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0x2cc], ebx
test ebx, ebx
je 0x434c03
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x434c97
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x434d2b
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0x278]
push 0
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
push 0
push 0x20000013
push ebx
mov dword [ebp - 0x278], 4
call esi
mov eax, dword [ebp - 0x228]
cmp eax, 0x12c
jb 0x43485e
cmp eax, 0x190
jae 0x43485e
mov eax, dword [ebp - 0x2d8]
inc eax
mov dword [ebp - 0x2d8], eax
cmp eax, 5
jg 0x434dbf
push 0
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x21
push ebx
call esi
mov ebx, dword [ebp - 0x280]
shr ebx, 1
mov byte [ebp - 4], 0x17
call fcn.00483151
mov ecx, eax
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x434de0
mov eax, dword [ecx]
push 2
push ebx
call dword [eax]
test eax, eax
je 0x434dea
lea esi, [eax + 0x10]
mov dword [ebp - 0x2d4], esi
cmp ebx, dword [esi - 8]
jg 0x434b60
mov dword [esi - 0xc], ebx
xor eax, eax
add ebx, ebx
mov word [ebx + esi], ax
test ebx, ebx
je 0x4347d0
test esi, esi
jne 0x4347bf
call fcn.005dd640
mov dword [eax], 0x16
call fcn.005dd51a
jmp 0x4347d0
push ebx
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.005cfab0
add esp, 0xc
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0x18
lea ebx, [edi - 0x10]
cmp ecx, ebx
je 0x43482c
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x434817
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x434817
push ecx
call fcn.004123f0
mov esi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x43480c
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea edi, [esi + 0x10]
mov dword [ebp - 0x220], edi
jmp 0x43482c
push dword [esi - 0xc]
lea ecx, [ebp - 0x220]
push esi
call fcn.00412520
mov edi, dword [ebp - 0x220]
lea ecx, [ebp - 0x2d4]
call fcn.00410450
push dword [ebp - 0x2cc]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
mov eax, dword [ebp - 0x2d0]
push eax
call ebx
lea ecx, [ebp - 0x264]
call fcn.00410450
jmp 0x4344b0
add eax, 0xffffff38
cmp eax, 0x63
ja 0x434f62
push 0
lea eax, [ebp - 0x278]
mov dword [ebp - 0x274], 0
push eax
lea eax, [ebp - 0x274]
mov dword [ebp - 0x278], 4
push eax
push 0
push 0x20000005
push ebx
call esi
nop word [eax + eax]
mov eax, dword [ebp - 0x2e8]
cmp byte [eax], 0
jne 0x434def
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 0
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x434e10
mov eax, dword [ebp - 0x278]
test eax, eax
jne 0x434905
lea ecx, [ebp - 0x264]
call fcn.00410450
mov ecx, dword [ebp - 0x2e0]
mov al, 1
mov esi, dword [ebp - 0x2c8]
inc ecx
mov byte [ebp - 0x2bd], al
mov dword [ebp - 4], 1
jmp 0x434495
inc eax
push eax
call fcn.004a44ac
mov esi, eax
add esp, 4
test esi, esi
je 0x434ea4
mov eax, dword [ebp - 0x278]
inc eax
push eax
push 0
push esi
call fcn.005d0030
add esp, 0xc
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x278]
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x434ec5
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x27c]
push eax
push esi
push dword [ecx + 4]
call fcn.00438960
push esi
call fcn.00482e1b
add esp, 4
jmp 0x4348a0
test ebx, ebx
je 0x4349d8
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call ebx
jmp 0x4349de
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x2d0]
test eax, eax
je 0x4349eb
push eax
call ebx
test esi, esi
je 0x4349f2
push esi
call ebx
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x434a0a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005ca888
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x230]
mov esi, eax
call fcn.0040c760
call fcn.00410470
push ecx
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 3
call fcn.0040c760
mov edx, esi
call fcn.00435770
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.0040f6a0
push eax
push esi
lea eax, [ebp - 0x230]
push str.Failed_to_open_HTTP_session:__d____s
push eax
call fcn.00412ed0
add esp, 0x10
lea ecx, [ebp - 0x230]
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x400]
call fcn.0040f6d0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x2f8]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x2f8]
push eax
call fcn.005d018a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x224]
mov esi, eax
call fcn.0040c760
call fcn.00410470
push ecx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 6
call fcn.0040c760
mov edx, esi
call fcn.00435770
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.0040f6a0
push eax
push esi
lea eax, [ebp - 0x224]
push str.Failed_to_set_secure_protocols:__d____s
push eax
call fcn.00412ed0
add esp, 0x10
lea ecx, [ebp - 0x224]
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x400]
call fcn.0040f6d0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x304]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x304]
push eax
call fcn.005d018a
push 0x80004005
call fcn.0040c5c0
push 0x80070057
call fcn.0040c5c0
call fcn.00412d00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x23c]
mov esi, eax
call fcn.0040c760
call fcn.00410470
push ecx
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0xb
call fcn.0040c760
mov edx, esi
call fcn.00435770
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 0xc
call fcn.0040f6a0
push eax
push esi
lea eax, [ebp - 0x23c]
push str.Failed_to_connect:__d____s
push eax
call fcn.00412ed0
add esp, 0x10
lea ecx, [ebp - 0x23c]
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x400]
call fcn.0040f6d0
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x310]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x310]
push eax
call fcn.005d018a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x240]
mov esi, eax
call fcn.0040c760
call fcn.00410470
push ecx
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xe
call fcn.0040c760
mov edx, esi
call fcn.00435770
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xf
call fcn.0040f6a0
push eax
push esi
lea eax, [ebp - 0x240]
push str.Failed_to_open_request:__d____s
push eax
call fcn.00412ed0
add esp, 0x10
lea ecx, [ebp - 0x240]
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x400]
call fcn.0040f6d0
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x31c]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x31c]
push eax
call fcn.005d018a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x244]
mov esi, eax
call fcn.0040c760
call fcn.00410470
push ecx
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x11
call fcn.0040c760
mov edx, esi
call fcn.00435770
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0x12
call fcn.0040f6a0
push eax
push esi
lea eax, [ebp - 0x244]
push str.Failed_to_send_request:__d____s
push eax
call fcn.00412ed0
add esp, 0x10
lea ecx, [ebp - 0x244]
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x400]
call fcn.0040f6d0
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x364]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x364]
push eax
call fcn.005d018a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.0040c760
call fcn.00410470
push ecx
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0x14
call fcn.0040c760
mov edx, esi
call fcn.00435770
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0x15
call fcn.0040f6a0
push eax
push esi
lea eax, [ebp - 0x248]
push str.Failed_to_receive_response:__d____s
push eax
call fcn.00412ed0
add esp, 0x10
lea ecx, [ebp - 0x248]
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x400]
call fcn.0040f6d0
mov ecx, eax
mov byte [ebp - 4], 0x16
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x328]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x328]
push eax
call fcn.005d018a
push str.Too_many_redirects.
lea ecx, [ebp - 0x334]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x334]
push eax
call fcn.005d018a
push 0x80004005
call fcn.0040c5c0
call fcn.00412d00
push str.Download_cancelled.
lea ecx, [ebp - 0x340]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x340]
push eax
call fcn.005d018a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x24c]
mov esi, eax
call fcn.0040c760
call fcn.00410470
push ecx
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x1d
call fcn.0040c760
mov edx, esi
call fcn.00435770
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x1e
call fcn.0040f6a0
push eax
push esi
lea eax, [ebp - 0x24c]
push str.Failed_to_query_data:__d____s
push eax
call fcn.00412ed0
add esp, 0x10
lea ecx, [ebp - 0x24c]
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x400]
call fcn.0040f6d0
mov ecx, eax
mov byte [ebp - 4], 0x1f
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x34c]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x34c]
push eax
call fcn.005d018a
push 0x66ec4c
lea ecx, [ebp - 0x358]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x358]
push eax
call fcn.005d018a
push esi
call fcn.00482e1b
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x238]
mov esi, eax
call fcn.0040c760
call fcn.00410470
push ecx
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0x20
call fcn.0040c760
mov edx, esi
call fcn.00435770
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 0x21
call fcn.0040f6a0
push eax
push esi
lea eax, [ebp - 0x238]
push str.Failed_to_read_data:__d____s
push eax
call fcn.00412ed0
add esp, 0x10
lea ecx, [ebp - 0x238]
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x400]
call fcn.0040f6d0
mov ecx, eax
mov byte [ebp - 4], 0x22
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x37c]
call fcn.0040cbc0
push 0x69dc60
lea eax, [ebp - 0x37c]
push eax
call fcn.005d018a
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0040c760
call fcn.00410470
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x22c]
push dword [ebp - 0x228]
push str.Server_returned_status_code:__d
push eax
call fcn.00412ed0
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x400]
call fcn.0040f6d0
mov ecx, eax
mov byte [ebp - 4], 0x1a
call fcn.0040f6a0
push eax
lea ecx, [ebp - 0x418]
call fcn.0040ffe0
push eax
mov edx, str.Download_failed:
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x430]
call fcn.00438110
add esp, 4
push eax
lea ecx, [ebp - 0x370]
mov byte [ebp - 4], 0x1c
call fcn.0040cb60
push 0x69dc60
lea eax, [ebp - 0x370]
push eax
call fcn.005d018a
int3