Function at 0x49d6e0
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 0x56b021
mov eax, dword fs:[0]
push eax
mov eax, 0x13338
call fcn.00528110
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13334], 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x130d8], eax
cmp dword [ebp - 0x130d8], 0
jne 0x49d75d
push 0x58ab10
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov eax, dword [ebp - 0x13334]
or eax, 1
mov dword [ebp - 0x13334], eax
mov eax, dword [ebp + 8]
jmp 0x49dfb2
xor ecx, ecx
mov word [ebp - 0x28cc], cx
push 0x208
push 0
lea edx, [ebp - 0x28ca]
push edx
call fcn.005281f0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x26ac], ax
push 0x208
push 0
lea ecx, [ebp - 0x26aa]
push ecx
call fcn.005281f0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x132f4], dx
push 0x208
push 0
lea eax, [ebp - 0x132f2]
push eax
call fcn.005281f0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x2494], cx
push 0x208
push 0
lea edx, [ebp - 0x2492]
push edx
call fcn.005281f0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x2234], ax
push 0x208
push 0
lea ecx, [ebp - 0x2232]
push ecx
call fcn.005281f0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x201c], dx
push 0x2000
push 0
lea eax, [ebp - 0x201a]
push eax
call fcn.005281f0
add esp, 0xc
mov dword [ebp - 0x2278], 0x3c
lea ecx, [ebp - 0x28cc]
mov dword [ebp - 0x2274], ecx
lea edx, [ebp - 0x26ac]
mov dword [ebp - 0x2268], edx
lea eax, [ebp - 0x132f4]
mov dword [ebp - 0x225c], eax
lea ecx, [ebp - 0x2494]
mov dword [ebp - 0x2254], ecx
lea edx, [ebp - 0x2234]
mov dword [ebp - 0x224c], edx
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2270], 0x104
mov dword [ebp - 0x2264], 0x104
mov dword [ebp - 0x2258], 0x104
mov dword [ebp - 0x2250], 0x104
mov dword [ebp - 0x2248], 0x104
mov dword [ebp - 0x2240], 0x1000
lea ecx, [ebp - 0x2278]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x1331c]
push eax
call fcn.00499ef0
add esp, 8
mov dword [ebp - 0x13338], eax
mov ecx, dword [ebp - 0x13338]
call fcn.00415f60
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
lea ecx, [ebp - 0x1331c]
call fcn.00415e20
push 0
movzx ecx, word [ebp - 0x2260]
push ecx
mov edx, dword [ebp - 0x2268]
push edx
mov eax, dword [ebp - 0x130d8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x2238], eax
cmp dword [ebp - 0x2238], 0
jne 0x49d944
mov ecx, dword [ebp - 0x130d8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0x58ab14
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov edx, dword [ebp - 0x13334]
or edx, 1
mov dword [ebp - 0x13334], edx
mov eax, dword [ebp + 8]
jmp 0x49dfb2
mov dword [ebp - 0x26b8], 0x100
movzx eax, word [ebp - 0x2260]
cmp eax, 0x1bb
jne 0x49d96e
mov ecx, dword [ebp - 0x26b8]
or ecx, 0x800000
mov dword [ebp - 0x26b8], ecx
mov edx, dword [ebp - 0x224c]
push edx
call fcn.00528324
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2244]
push eax
call fcn.00528324
add esp, 4
lea eax, [esi + eax + 1]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dea4c
add esp, 4
mov dword [ebp - 0x13320], eax
mov eax, dword [ebp - 0x13320]
mov dword [ebp - 0x130e0], eax
mov ecx, dword [ebp - 0x224c]
push ecx
mov edx, dword [ebp - 0x130e0]
push edx
call fcn.005282c4
add esp, 8
mov eax, dword [ebp - 0x2244]
push eax
mov ecx, dword [ebp - 0x130e0]
push ecx
call fcn.00528296
add esp, 8
mov edx, dword [ebp - 0x26b8]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x130e0]
push eax
push 0x58ab18
mov ecx, dword [ebp - 0x2238]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x2020], eax
cmp dword [ebp - 0x2020], 0
jne 0x49da77
mov edx, dword [ebp - 0x2238]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x130d8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x130e0]
mov dword [ebp - 0x13324], ecx
mov edx, dword [ebp - 0x13324]
push edx
call fcn.004dea57
add esp, 4
push 0x58ab20
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov eax, dword [ebp - 0x13334]
or eax, 1
mov dword [ebp - 0x13334], eax
mov eax, dword [ebp + 8]
jmp 0x49dfb2
mov ecx, dword [ebp - 0x130e0]
mov dword [ebp - 0x13328], ecx
mov edx, dword [ebp - 0x13328]
push edx
call fcn.004dea57
add esp, 4
push 0
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x1332c]
push ecx
call fcn.00499ef0
add esp, 8
mov dword [ebp - 0x1333c], eax
mov edx, dword [ebp - 0x1333c]
mov dword [ebp - 0x13340], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x13340]
call fcn.00415f60
push eax
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x13330]
push ecx
call fcn.00499ef0
add esp, 8
mov dword [ebp - 0x13344], eax
mov ecx, dword [ebp - 0x13344]
call fcn.00415f60
push eax
push 1
push 0
mov edx, dword [ebp - 0x2020]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
lea ecx, [ebp - 0x13330]
call fcn.00415e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1332c]
call fcn.00415e20
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x2020]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x49db87
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x2238]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x130d8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0x58ab24
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov ecx, dword [ebp - 0x13334]
or ecx, 1
mov dword [ebp - 0x13334], ecx
mov eax, dword [ebp + 8]
jmp 0x49dfb2
push 0
mov edx, dword [ebp - 0x2020]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0x2498], 0
mov dword [ebp - 0x10], 4
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2498]
push ecx
push 0
push 0x20000013
mov edx, dword [ebp - 0x2020]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [ebp - 0x2498], 0xc8
je 0x49dc4a
mov eax, dword [ebp - 0x2020]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x2238]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x130d8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x2498], 0x191
jne 0x49dc0f
push 0x41
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x2498], 0x192
jne 0x49dc26
push 0x701
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x58ab28
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov eax, dword [ebp - 0x13334]
or eax, 1
mov dword [ebp - 0x13334], eax
mov eax, dword [ebp + 8]
jmp 0x49dfb2
xor ecx, ecx
mov word [ebp - 0x130d4], cx
push 0x7fe
push 0
lea edx, [ebp - 0x130d2]
push edx
call fcn.005281f0
add esp, 0xc
mov dword [ebp - 0x130dc], 0x400
mov dword [ebp - 0x2284], 0
mov dword [ebp - 0x2280], 0
push 0
lea eax, [ebp - 0x130dc]
push eax
lea ecx, [ebp - 0x130d4]
push ecx
push 0
push 5
mov edx, dword [ebp - 0x2020]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x49dcc7
lea eax, [ebp - 0x130d4]
push eax
call fcn.00527fe6
add esp, 4
mov dword [ebp - 0x2284], eax
mov dword [ebp - 0x2280], edx
mov byte [ebp - 0x128d4], 0
push 0x10000
push 0
lea ecx, [ebp - 0x128d3]
push ecx
call fcn.005281f0
add esp, 0xc
mov dword [ebp - 0x26b4], 0
mov dword [ebp - 0x26b0], 0
cmp dword [ebp + 0x10], 0
je 0x49dd14
push 0x640000
push 0
push 0x401
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x26bc]
call fcn.0046e6b0
mov dword [ebp - 4], 1
cmp dword [ebp + 0x1c], 0
je 0x49dd91
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
jne 0x49dd91
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x2238]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x130d8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0x58ab2c
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov ecx, dword [ebp - 0x13334]
or ecx, 1
mov dword [ebp - 0x13334], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26bc]
call fcn.00412130
mov eax, dword [ebp + 8]
jmp 0x49dfb2
lea edx, [ebp - 0x223c]
push edx
push 0x10000
lea eax, [ebp - 0x128d4]
push eax
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 0x132fc], eax
mov edx, dword [ebp - 0x223c]
mov dword [ebp - 0x132f8], edx
cmp dword [ebp - 0x132fc], 0
je 0x49deac
cmp dword [ebp - 0x223c], 0
jbe 0x49deac
mov eax, dword [ebp - 0x223c]
xor ecx, ecx
add eax, dword [ebp - 0x26b4]
mov edx, dword [ebp - 0x26b0]
adc edx, ecx
mov dword [ebp - 0x26b4], eax
mov dword [ebp - 0x26b0], edx
cmp dword [ebp + 0x10], 0
je 0x49de8a
mov eax, dword [ebp - 0x2284]
or eax, dword [ebp - 0x2280]
je 0x49de55
push 0
push 0
push 0x64
mov ecx, dword [ebp - 0x26b0]
push ecx
mov edx, dword [ebp - 0x26b4]
push edx
call fcn.005282f0
mov ecx, dword [ebp - 0x2280]
push ecx
mov ecx, dword [ebp - 0x2284]
push ecx
push edx
push eax
call fcn.00528340
push eax
push 0x402
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x13318]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x49de8a
lea ecx, [ebp - 0x13318]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x13318]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x49de55
mov eax, dword [ebp - 0x132f8]
mov byte [ebp + eax - 0x128d4], 0
lea ecx, [ebp - 0x128d4]
push ecx
lea ecx, [ebp - 0x26bc]
call fcn.0046e770
jmp 0x49df14
cmp dword [ebp - 0x132fc], 0
jne 0x49df12
mov edx, dword [ebp - 0x2020]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x2238]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x130d8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push 0x58ab30
mov ecx, dword [ebp + 8]
call fcn.00415da0
mov edx, dword [ebp - 0x13334]
or edx, 1
mov dword [ebp - 0x13334], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26bc]
call fcn.00412130
mov eax, dword [ebp + 8]
jmp 0x49dfb2
jmp 0x49df4f
mov eax, dword [ebp - 0x2284]
or eax, dword [ebp - 0x2280]
je 0x49df42
mov ecx, dword [ebp - 0x26b0]
cmp ecx, dword [ebp - 0x2280]
jb 0x49df42
ja 0x49df40
mov edx, dword [ebp - 0x26b4]
cmp edx, dword [ebp - 0x2284]
jb 0x49df42
jmp 0x49df4f
mov eax, 1
test eax, eax
jne 0x49dd26
mov ecx, dword [ebp - 0x2020]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edx, dword [ebp - 0x2238]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x130d8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [ebp - 0x26bc]
call fcn.00412150
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00499f50
add esp, 8
mov edx, dword [ebp - 0x13334]
or edx, 1
mov dword [ebp - 0x13334], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26bc]
call fcn.00412130
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret