Function at 0x47bd80
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb883
mov eax, dword fs:[0]
push eax
mov eax, 0x1498
call fcn.004c0dd0
mov eax, dword [0x51eed4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x149c], ecx
mov ecx, dword [ebp - 0x149c]
add ecx, 8
call fcn.00480e30
test eax, eax
ja 0x47bdde
mov eax, dword [ebp - 0x149c]
mov dword [eax + 0x100], 3
xor al, al
jmp 0x47d2cf
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x238]
call fcn.00480cb0
mov dword [ebp - 4], 0
push 0x4f2b8c
lea ecx, [ebp - 0x238]
call fcn.00480e10
push eax
call fcn.004c0d36
add esp, 8
test eax, eax
jne 0x47be23
push 0x4f2b8c
lea ecx, [ebp - 0x238]
call fcn.00480d30
jmp 0x47be86
push 0x4f2934
lea ecx, [ebp - 0x238]
call fcn.00480e10
push eax
call fcn.004c0d36
add esp, 8
test eax, eax
jne 0x47be52
push 0x4f2934
lea ecx, [ebp - 0x238]
call fcn.00480d30
jmp 0x47be86
mov edx, dword [ebp - 0x149c]
mov dword [edx + 0x100], 0x57
mov byte [ebp - 0x140d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00480cf0
mov al, byte [ebp - 0x140d]
jmp 0x47d2cf
mov byte [ebp - 0xc9d], 1
mov eax, dword [ebp - 0x149c]
cmp dword [eax], 0
jne 0x47bf01
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x149c]
add ecx, 0x120
call fcn.00480e10
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp - 0x149c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x149c]
cmp dword [edx], 0
jne 0x47bf01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x100], eax
mov byte [ebp - 0x140e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00480cf0
mov al, byte [ebp - 0x140e]
jmp 0x47d2cf
mov edx, dword [ebp - 0x149c]
mov eax, dword [edx + 0x168]
push eax
mov ecx, dword [ebp - 0x149c]
mov edx, dword [ecx + 0x164]
push edx
mov eax, dword [ebp - 0x149c]
mov ecx, dword [eax + 0x160]
push ecx
mov edx, dword [ebp - 0x149c]
mov eax, dword [edx + 0x15c]
push eax
mov ecx, dword [ebp - 0x149c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov ax, word [0x50e2f4]
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.004bfe20
add esp, 0xc
mov dx, word [0x50e2f4]
mov word [ebp - 0xc9c], dx
push 0xa26
push 0
lea eax, [ebp - 0xc9a]
push eax
call fcn.004bfe20
add esp, 0xc
push 0x3c
push 0
lea ecx, [ebp - 0x274]
push ecx
call fcn.004bfe20
add esp, 0xc
mov dword [ebp - 0x274], 0x3c
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x260], 0x104
lea eax, [ebp - 0xc9c]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], 0x514
mov dword [ebp - 0x26c], 1
lea ecx, [ebp - 0x274]
push ecx
push 0
mov ecx, dword [ebp - 0x149c]
add ecx, 8
call fcn.00480e30
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 8
call fcn.00480e10
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x47d2ab
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp - 0x149c]
add ecx, 0x24
call fcn.00480d30
mov dword [ebp - 0xca4], 0
push 0
movzx eax, word [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x149c]
mov eax, dword [edx]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xca4], eax
cmp dword [ebp - 0xca4], 0
je 0x47d2ab
xor ecx, ecx
cmp dword [ebp - 0x268], 2
setne cl
sub ecx, 1
and ecx, 0x800000
mov dword [ebp - 0xca8], ecx
mov dword [ebp - 0xcac], 0
mov edx, dword [ebp - 0xca8]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x248]
push eax
lea ecx, [ebp - 0x238]
call fcn.00480e10
push eax
mov ecx, dword [ebp - 0xca4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0xcac], eax
cmp dword [ebp - 0xcac], 0
je 0x47d29e
mov edx, dword [ebp - 0x149c]
movzx eax, byte [edx + 4]
test eax, eax
jne 0x47c103
cmp dword [ebp - 0x268], 2
jne 0x47c103
mov dword [ebp - 0xcb8], 0x3100
push 4
lea ecx, [ebp - 0xcb8]
push ecx
push 0x1f
mov edx, dword [ebp - 0xcac]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [ebp - 0xcb1], 0
mov dword [ebp - 0xcb0], 0
movzx eax, byte [ebp - 0xcb1]
test eax, eax
jne 0x47d239
mov ecx, dword [ebp - 0xcb0]
mov edx, dword [ebp - 0xcb0]
add edx, 1
mov dword [ebp - 0xcb0], edx
cmp ecx, 3
jae 0x47d239
mov ecx, dword [ebp - 0x149c]
add ecx, 0xe4
call fcn.00480e30
test eax, eax
jbe 0x47c1a2
push 0x1000000
mov ecx, dword [ebp - 0x149c]
add ecx, 0xe4
call fcn.00480e30
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0xe4
call fcn.00480e10
push eax
mov eax, dword [ebp - 0xcac]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x47c1a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x100], eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0xc0
call fcn.00480e30
test eax, eax
jbe 0x47c232
push str.Cookie:
lea ecx, [ebp - 0xcd8]
call fcn.00480c70
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x149c]
add edx, 0xc0
push edx
lea ecx, [ebp - 0xcd8]
call fcn.00480d50
push 0x1000000
lea ecx, [ebp - 0xcd8]
call fcn.00480e30
push eax
lea ecx, [ebp - 0xcd8]
call fcn.00480e10
push eax
mov eax, dword [ebp - 0xcac]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x47c223
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x100], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xcd8]
call fcn.00480cf0
mov ecx, 0x521dc0
call fcn.00480e30
test eax, eax
jbe 0x47c37d
push 0xc
push 0
lea edx, [ebp - 0xef0]
push edx
call fcn.004bfe20
add esp, 0xc
mov dword [ebp - 0xef0], 3
mov ax, word [0x50e2f4]
mov word [ebp - 0xee4], ax
push 0x206
push 0
lea ecx, [ebp - 0xee2]
push ecx
call fcn.004bfe20
add esp, 0xc
mov ecx, 0x521dc0
call fcn.00480e10
push eax
push 0x104
lea edx, [ebp - 0xee4]
push edx
call fcn.004c0bb6
add esp, 0xc
lea eax, [ebp - 0xee4]
mov dword [ebp - 0xeec], eax
push 0xc
lea ecx, [ebp - 0xef0]
push ecx
push 0x26
mov edx, dword [ebp - 0xcac]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x47c2dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x100], eax
mov ecx, 0x521ddc
call fcn.00480e30
test eax, eax
jbe 0x47c37d
mov ecx, 0x521ddc
call fcn.00480e30
shl eax, 1
push eax
mov ecx, 0x521ddc
call fcn.00480e10
push eax
push 0x1002
mov edx, dword [ebp - 0xcac]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x47c32f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x100], eax
mov ecx, 0x521df8
call fcn.00480e30
test eax, eax
jbe 0x47c37d
mov ecx, 0x521df8
call fcn.00480e30
shl eax, 1
push eax
mov ecx, 0x521df8
call fcn.00480e10
push eax
push 0x1003
mov edx, dword [ebp - 0xcac]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x47c37d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x100], eax
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x47c3bd
mov dword [ebp - 0xef4], 2
push 4
lea eax, [ebp - 0xef4]
push eax
push 0x3f
mov ecx, dword [ebp - 0xcac]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x47c3bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x149c]
mov dword [edx + 0x100], eax
mov byte [ebp - 0xcb9], 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xcac]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x47c3ed
mov byte [ebp - 0xcb9], 1
jmp 0x47c687
push 0x10
push 0
lea ecx, [ebp - 0xf04]
push ecx
call fcn.004bfe20
add esp, 0xc
lea edx, [ebp - 0xf04]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x47c675
cmp dword [ebp - 0xf00], 0
je 0x47c53b
push 0x18
push 0
lea eax, [ebp - 0xf1c]
push eax
call fcn.004bfe20
add esp, 0xc
mov dword [ebp - 0xf1c], 3
mov dword [ebp - 0xf18], 1
mov ecx, dword [ebp - 0xf00]
mov dword [ebp - 0xf14], ecx
mov dword [ebp - 0xf08], 1
mov dword [ebp - 0xf0c], 0
mov dword [ebp - 0xf10], 0
push 0xc
push 0
lea edx, [ebp - 0xf28]
push edx
call fcn.004bfe20
add esp, 0xc
lea eax, [ebp - 0xf28]
push eax
lea ecx, [ebp - 0xf1c]
push ecx
mov ecx, dword [ebp - 0x149c]
add ecx, 8
call fcn.00480e10
push eax
mov edx, dword [ebp - 0x149c]
mov eax, dword [edx]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x47c524
push 0xc
lea ecx, [ebp - 0xf28]
push ecx
push 0x26
mov edx, dword [ebp - 0xcac]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x47c4f6
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xcac]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x47c4f6
mov byte [ebp - 0xcb9], 1
cmp dword [ebp - 0xf24], 0
je 0x47c50c
mov ecx, dword [ebp - 0xf24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0xf20], 0
je 0x47c522
mov edx, dword [ebp - 0xf20]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x47c536
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x100], eax
jmp 0x47c631
cmp dword [ebp - 0xefc], 0
je 0x47c631
push 0xc
push 0
lea edx, [ebp - 0x1140]
push edx
call fcn.004bfe20
add esp, 0xc
mov dword [ebp - 0x1140], 3
mov ax, word [0x50e2f4]
mov word [ebp - 0x1134], ax
push 0x206
push 0
lea ecx, [ebp - 0x1132]
push ecx
call fcn.004bfe20
add esp, 0xc
mov edx, dword [ebp - 0xefc]
push edx
push 0x104
lea eax, [ebp - 0x1134]
push eax
call fcn.004c0bb6
add esp, 0xc
lea ecx, [ebp - 0x1134]
mov dword [ebp - 0x113c], ecx
cmp dword [ebp - 0xef8], 0
je 0x47c603
mov dx, word [0x50e2f4]
mov word [ebp - 0x134c], dx
push 0x206
push 0
lea eax, [ebp - 0x134a]
push eax
call fcn.004bfe20
add esp, 0xc
mov ecx, dword [ebp - 0xef8]
push ecx
push 0x104
lea edx, [ebp - 0x134c]
push edx
call fcn.004c0bb6
add esp, 0xc
lea eax, [ebp - 0x134c]
mov dword [ebp - 0x1138], eax
push 0xc
lea ecx, [ebp - 0x1140]
push ecx
push 0x26
mov edx, dword [ebp - 0xcac]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x47c631
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x100], eax
cmp dword [ebp - 0xf00], 0
je 0x47c647
mov edx, dword [ebp - 0xf00]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0xefc], 0
je 0x47c65d
mov eax, dword [ebp - 0xefc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0xef8], 0
je 0x47c673
mov ecx, dword [ebp - 0xef8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x47c687
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x149c]
mov dword [edx + 0x100], eax
movzx eax, byte [ebp - 0xcb9]
test eax, eax
je 0x47d234
mov ecx, dword [ebp - 0x149c]
cmp dword [ecx + 0xdc], 0
je 0x47c6f3
mov dword [ebp - 0x1350], 0
lea edx, [ebp - 0x1350]
push edx
mov eax, dword [ebp - 0x149c]
mov ecx, dword [eax + 0xe0]
push ecx
mov edx, dword [ebp - 0x149c]
mov eax, dword [edx + 0xdc]
push eax
mov ecx, dword [ebp - 0xcac]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x47c6f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x149c]
mov dword [edx + 0x100], eax
push 0
mov eax, dword [ebp - 0xcac]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x47d222
mov dword [ebp - 0x1354], 0
mov dword [ebp - 0x1368], 0
push 0
lea ecx, [ebp - 0x1354]
push ecx
push 0
push 0
push 0x16
mov edx, dword [ebp - 0xcac]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x1368], eax
cmp dword [ebp - 0x1368], 0
jne 0x47c765
cmp dword [ebp - 0x1368], 0
jne 0x47cb60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x47cb60
xor ecx, ecx
mov eax, dword [ebp - 0x1354]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0518
add esp, 4
mov dword [ebp - 0x1414], eax
mov eax, dword [ebp - 0x1414]
mov dword [ebp - 0x1370], eax
cmp dword [ebp - 0x1370], 0
je 0x47cb60
mov ecx, dword [ebp - 0x1354]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x1370]
push edx
call fcn.004bfe20
add esp, 0xc
push 0
lea eax, [ebp - 0x1354]
push eax
mov ecx, dword [ebp - 0x1370]
push ecx
push 0
push 0x16
mov edx, dword [ebp - 0xcac]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x47cb45
mov eax, dword [ebp - 0x1370]
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0x40
call fcn.00480d90
lea ecx, [ebp - 0x1388]
call fcn.004809d0
mov byte [ebp - 4], 2
push 0x50e2f4
lea ecx, [ebp - 0x13a4]
call fcn.00480c70
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x149c]
movzx edx, byte [ecx + 0x13c]
test edx, edx
jne 0x47c897
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x13a4]
call fcn.00480d30
push 0
lea eax, [ebp - 0x1388]
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0x40
push ecx
push 1
push 0
lea edx, [ebp - 0x13a4]
push edx
call fcn.0047d2f0
add esp, 0x18
movzx eax, al
test eax, eax
je 0x47c897
lea ecx, [ebp - 0x1388]
call fcn.00480ad0
test eax, eax
jbe 0x47c897
push 0
lea ecx, [ebp - 0x1388]
call fcn.00480af0
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0x78
call fcn.00480d10
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x13a4]
call fcn.00480d30
push 0
lea ecx, [ebp - 0x1388]
push ecx
mov edx, dword [ebp - 0x149c]
add edx, 0x40
push edx
push 1
push 0
lea eax, [ebp - 0x13a4]
push eax
call fcn.0047d2f0
add esp, 0x18
movzx ecx, al
test ecx, ecx
je 0x47c90c
lea ecx, [ebp - 0x1388]
call fcn.00480ad0
test eax, eax
jbe 0x47c90c
push 0
lea ecx, [ebp - 0x1388]
call fcn.00480af0
mov ecx, eax
call fcn.00480e10
push eax
call fcn.004c0bab
add esp, 4
mov edx, dword [ebp - 0x149c]
mov dword [edx + 0xa0], eax
push str.Location:__0_9_
lea ecx, [ebp - 0x13a4]
call fcn.00480d30
push 0
lea eax, [ebp - 0x1388]
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0x40
push ecx
push 1
push 0
lea edx, [ebp - 0x13a4]
push edx
call fcn.0047d2f0
add esp, 0x18
movzx eax, al
test eax, eax
je 0x47c977
lea ecx, [ebp - 0x1388]
call fcn.00480ad0
test eax, eax
jbe 0x47c977
push 0
lea ecx, [ebp - 0x1388]
call fcn.00480af0
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0x140
call fcn.00480d10
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x13a4]
call fcn.00480d30
push 0
lea ecx, [ebp - 0x1388]
push ecx
mov edx, dword [ebp - 0x149c]
add edx, 0x40
push edx
push 1
push 0
lea eax, [ebp - 0x13a4]
push eax
call fcn.0047d2f0
add esp, 0x18
movzx ecx, al
test ecx, ecx
je 0x47cb27
lea ecx, [ebp - 0x1388]
call fcn.00480ad0
test eax, eax
jbe 0x47cb27
mov dword [ebp - 0x13a8], 0
jmp 0x47c9e6
mov edx, dword [ebp - 0x13a8]
add edx, 1
mov dword [ebp - 0x13a8], edx
lea ecx, [ebp - 0x1388]
call fcn.00480ad0
cmp dword [ebp - 0x13a8], eax
jae 0x47ca4b
mov eax, dword [ebp - 0x13a8]
push eax
lea ecx, [ebp - 0x1388]
call fcn.00480af0
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0xa4
call fcn.00480d50
lea ecx, [ebp - 0x1388]
call fcn.00480ad0
sub eax, 1
cmp dword [ebp - 0x13a8], eax
je 0x47ca49
push 0x4f2ab4
mov ecx, dword [ebp - 0x149c]
add ecx, 0xa4
call fcn.00480d70
jmp 0x47c9d7
push 0x4f2ab0
lea ecx, [ebp - 0x1430]
call fcn.00480c70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1430]
push ecx
mov edx, dword [ebp - 0x149c]
add edx, 0xa4
push edx
lea eax, [ebp - 0x144c]
push eax
call fcn.0047d800
add esp, 0xc
mov dword [ebp - 0x14a0], eax
mov ecx, dword [ebp - 0x14a0]
mov dword [ebp - 0x14a4], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14a4]
push edx
mov ecx, dword [ebp - 0x149c]
add ecx, 0xa4
call fcn.00480d10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x144c]
call fcn.00480cf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1430]
call fcn.00480cf0
mov ecx, dword [ebp - 0x149c]
add ecx, 0xa4
call fcn.00480e30
test eax, eax
jbe 0x47cb27
mov ecx, dword [ebp - 0x149c]
add ecx, 0xa4
call fcn.00480e30
sub eax, 1
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0xa4
call fcn.00480de0
movzx eax, word [eax]
cmp eax, 0x3b
je 0x47cb27
push 0x4f2aac
mov ecx, dword [ebp - 0x149c]
add ecx, 0xa4
call fcn.00480d70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x13a4]
call fcn.00480cf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1388]
call fcn.00480a40
mov ecx, dword [ebp - 0x1370]
mov dword [ebp - 0x1450], ecx
mov edx, dword [ebp - 0x1450]
push edx
call fcn.004c0415
add esp, 4
mov dword [ebp - 0x1354], 0
push 0
lea eax, [ebp - 0x1354]
push eax
push 0
push 0
push 0x13
mov ecx, dword [ebp - 0xcac]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x1368], eax
cmp dword [ebp - 0x1368], 0
jne 0x47cbb1
cmp dword [ebp - 0x1368], 0
jne 0x47cc5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x47cc5d
xor ecx, ecx
mov eax, dword [ebp - 0x1354]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0518
add esp, 4
mov dword [ebp - 0x1454], eax
mov eax, dword [ebp - 0x1454]
mov dword [ebp - 0x13ac], eax
cmp dword [ebp - 0x13ac], 0
je 0x47cc5d
mov ecx, dword [ebp - 0x1354]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x13ac]
push edx
call fcn.004bfe20
add esp, 0xc
push 0
lea eax, [ebp - 0x1354]
push eax
mov ecx, dword [ebp - 0x13ac]
push ecx
push 0
push 0x13
mov edx, dword [ebp - 0xcac]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x47cc42
mov eax, dword [ebp - 0x13ac]
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0x104
call fcn.00480d30
mov ecx, dword [ebp - 0x13ac]
mov dword [ebp - 0x1458], ecx
mov edx, dword [ebp - 0x1458]
push edx
call fcn.004c0415
add esp, 4
mov dword [ebp - 0x136c], 0x2800
mov dword [ebp - 0x1360], 0
mov eax, dword [ebp - 0x149c]
cmp dword [eax + 0x94], 0
je 0x47ccb1
mov ecx, dword [ebp - 0x149c]
mov edx, dword [ecx + 0x94]
mov dword [ebp - 0x145c], edx
mov eax, dword [ebp - 0x145c]
push eax
call fcn.004c0415
add esp, 4
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x94], 0
mov edx, dword [ebp - 0x136c]
push edx
call fcn.004c0518
add esp, 4
mov dword [ebp - 0x1460], eax
mov eax, dword [ebp - 0x149c]
mov ecx, dword [ebp - 0x1460]
mov dword [eax + 0x94], ecx
mov edx, dword [ebp - 0x149c]
cmp dword [edx + 0x94], 0
jne 0x47ccf3
mov byte [ebp - 0xc9d], 0
jmp 0x47d239
mov eax, dword [ebp - 0x136c]
push eax
push 0
mov ecx, dword [ebp - 0x149c]
mov edx, dword [ecx + 0x94]
push edx
call fcn.004bfe20
add esp, 0xc
mov dword [ebp - 0x1354], 0
lea eax, [ebp - 0x1354]
push eax
mov ecx, dword [ebp - 0xcac]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x47cf0b
mov edx, dword [ebp - 0x1360]
push edx
mov ecx, dword [ebp - 0x149c]
call fcn.0047dbd0
mov eax, dword [ebp - 0x1354]
add eax, 1
push eax
call fcn.004c0518
add esp, 4
mov dword [ebp - 0x1464], eax
mov ecx, dword [ebp - 0x1464]
mov dword [ebp - 0x13b0], ecx
cmp dword [ebp - 0x13b0], 0
je 0x47cf09
mov edx, dword [ebp - 0x1354]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x13b0]
push eax
call fcn.004bfe20
add esp, 0xc
mov dword [ebp - 0x13b4], 0
lea ecx, [ebp - 0x13b4]
push ecx
mov edx, dword [ebp - 0x1354]
push edx
mov eax, dword [ebp - 0x13b0]
push eax
mov ecx, dword [ebp - 0xcac]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x47ceee
mov edx, dword [ebp - 0x13b4]
add edx, dword [ebp - 0x1360]
cmp edx, dword [ebp - 0x136c]
jbe 0x47ceb3
mov eax, dword [ebp - 0x149c]
mov ecx, dword [eax + 0x94]
mov dword [ebp - 0x13b8], ecx
mov edx, dword [ebp - 0x136c]
shl edx, 1
push edx
call fcn.004c0518
add esp, 4
mov dword [ebp - 0x1468], eax
mov eax, dword [ebp - 0x149c]
mov ecx, dword [ebp - 0x1468]
mov dword [eax + 0x94], ecx
mov edx, dword [ebp - 0x149c]
cmp dword [edx + 0x94], 0
jne 0x47ce49
mov eax, dword [ebp - 0x149c]
mov ecx, dword [ebp - 0x13b8]
mov dword [eax + 0x94], ecx
mov byte [ebp - 0xc9d], 0
jmp 0x47cf2a
mov edx, dword [ebp - 0x136c]
shl edx, 1
mov dword [ebp - 0x136c], edx
mov eax, dword [ebp - 0x136c]
push eax
push 0
mov ecx, dword [ebp - 0x149c]
mov edx, dword [ecx + 0x94]
push edx
call fcn.004bfe20
add esp, 0xc
mov eax, dword [ebp - 0x1360]
push eax
mov ecx, dword [ebp - 0x13b8]
push ecx
mov edx, dword [ebp - 0x149c]
mov eax, dword [edx + 0x94]
push eax
call fcn.004c0830
add esp, 0xc
mov ecx, dword [ebp - 0x13b8]
mov dword [ebp - 0x146c], ecx
mov edx, dword [ebp - 0x146c]
push edx
call fcn.004c0415
add esp, 4
mov eax, dword [ebp - 0x13b4]
push eax
mov ecx, dword [ebp - 0x13b0]
push ecx
mov edx, dword [ebp - 0x149c]
mov eax, dword [edx + 0x94]
add eax, dword [ebp - 0x1360]
push eax
call fcn.004c0830
add esp, 0xc
mov ecx, dword [ebp - 0x1360]
add ecx, dword [ebp - 0x13b4]
mov dword [ebp - 0x1360], ecx
mov edx, dword [ebp - 0x13b0]
mov dword [ebp - 0x1470], edx
mov eax, dword [ebp - 0x1470]
push eax
call fcn.004c0415
add esp, 4
jmp 0x47cf1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x100], eax
cmp dword [ebp - 0x1354], 0
ja 0x47cd11
mov edx, dword [ebp - 0x1360]
push edx
mov ecx, dword [ebp - 0x149c]
call fcn.0047dbd0
mov eax, dword [ebp - 0x149c]
mov ecx, dword [ebp - 0x1360]
mov dword [eax + 0x98], ecx
mov dword [ebp - 0x135c], 0
mov dword [ebp - 0x1358], 1
push 5
push str.utf_8
mov ecx, dword [ebp - 0x149c]
add ecx, 0x78
call fcn.00480e10
push eax
call fcn.004c0784
add esp, 0xc
test eax, eax
jne 0x47cf98
mov dword [ebp - 0x135c], 0xfde9
mov dword [ebp - 0x1358], 0
push 0
push 0
mov edx, dword [ebp - 0x149c]
mov eax, dword [edx + 0x98]
add eax, 1
push eax
mov ecx, dword [ebp - 0x149c]
mov edx, dword [ecx + 0x94]
push edx
mov eax, dword [ebp - 0x1358]
push eax
mov ecx, dword [ebp - 0x135c]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1364], eax
cmp dword [ebp - 0x1364], 0
jg 0x47d02b
mov dword [ebp - 0x135c], 0
mov dword [ebp - 0x1358], 1
push 0
push 0
mov edx, dword [ebp - 0x149c]
mov eax, dword [edx + 0x98]
add eax, 1
push eax
mov ecx, dword [ebp - 0x149c]
mov edx, dword [ecx + 0x94]
push edx
mov eax, dword [ebp - 0x1358]
push eax
mov ecx, dword [ebp - 0x135c]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1364], eax
cmp dword [ebp - 0x1364], 0
jle 0x47d10e
xor ecx, ecx
mov eax, dword [ebp - 0x1364]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0518
add esp, 4
mov dword [ebp - 0x1474], eax
mov eax, dword [ebp - 0x1474]
mov dword [ebp - 0x13bc], eax
cmp dword [ebp - 0x13bc], 0
je 0x47d10e
mov ecx, dword [ebp - 0x1364]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x13bc]
push edx
call fcn.004bfe20
add esp, 0xc
mov eax, dword [ebp - 0x1364]
push eax
mov ecx, dword [ebp - 0x13bc]
push ecx
mov edx, dword [ebp - 0x149c]
mov eax, dword [edx + 0x98]
add eax, 1
push eax
mov ecx, dword [ebp - 0x149c]
mov edx, dword [ecx + 0x94]
push edx
mov eax, dword [ebp - 0x1358]
push eax
mov ecx, dword [ebp - 0x135c]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1364], eax
cmp dword [ebp - 0x1364], 0
jle 0x47d0f3
mov edx, dword [ebp - 0x13bc]
push edx
mov ecx, dword [ebp - 0x149c]
add ecx, 0x5c
call fcn.00480d30
mov eax, dword [ebp - 0x13bc]
mov dword [ebp - 0x1478], eax
mov ecx, dword [ebp - 0x1478]
push ecx
call fcn.004c0415
add esp, 4
mov byte [ebp - 0xcb1], 1
push 0x4f2b8c
lea edx, [ebp - 0x238]
push edx
call fcn.00485c40
add esp, 8
movzx eax, al
test eax, eax
je 0x47d220
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
jne 0x47d220
push str._html_
lea ecx, [ebp - 0x13f0]
call fcn.00480c70
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x13d4]
call fcn.004809d0
mov byte [ebp - 4], 7
push 0
lea edx, [ebp - 0x13d4]
push edx
mov eax, dword [ebp - 0x149c]
add eax, 0x5c
push eax
push 1
push 0
lea ecx, [ebp - 0x13f0]
push ecx
call fcn.0047d2f0
add esp, 0x18
movzx edx, al
test edx, edx
je 0x47d202
lea ecx, [ebp - 0x13d4]
call fcn.00480ad0
test eax, eax
jbe 0x47d202
push str.__html_
lea ecx, [ebp - 0x13f0]
call fcn.00480d30
push 0
lea eax, [ebp - 0x13d4]
push eax
mov ecx, dword [ebp - 0x149c]
add ecx, 0x5c
push ecx
push 1
push 0
lea edx, [ebp - 0x13f0]
push edx
call fcn.0047d2f0
add esp, 0x18
movzx eax, al
test eax, eax
je 0x47d1eb
lea ecx, [ebp - 0x13d4]
call fcn.00480ad0
test eax, eax
ja 0x47d202
mov ecx, dword [ebp - 0x149c]
mov dword [ecx + 0x100], 0xd
mov byte [ebp - 0xcb1], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x13d4]
call fcn.00480a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13f0]
call fcn.00480cf0
jmp 0x47d234
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x149c]
mov dword [edx + 0x100], eax
jmp 0x47c114
movzx eax, byte [ebp - 0xcb1]
test eax, eax
jne 0x47d291
push str.cannot_connect_to_internet
lea ecx, [ebp - 0x140c]
call fcn.00402ae0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x140c]
push ecx
lea ecx, [ebp - 0x1494]
call fcn.0047d9e0
push 0x5153a4
lea edx, [ebp - 0x1494]
push edx
call fcn.004bfe9a
mov byte [ebp - 0xc9d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x140c]
call fcn.00402bb0
mov eax, dword [ebp - 0xcac]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0xca4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dl, byte [ebp - 0xc9d]
mov byte [ebp - 0x1495], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00480cf0
mov al, byte [ebp - 0x1495]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be1d6
mov esp, ebp
pop ebp
ret 8