Function at 0x459200
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73b4ac
mov eax, dword fs:[0]
push eax
mov eax, 0x13d4
call fcn.004fca40
mov eax, dword [0x82384c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1330], ecx
mov ecx, dword [ebp - 0x1330]
add ecx, 0x20
call fcn.004144c0
test eax, eax
ja 0x45925e
mov eax, dword [ebp - 0x1330]
mov dword [eax + 0x104], 3
xor al, al
jmp 0x45a528
mov byte [ebp - 0x1339], 1
mov ecx, dword [ebp - 0x1330]
cmp dword [ecx], 0
jne 0x4592bc
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x1330]
add ecx, 0x120
call fcn.00405580
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edx, dword [ebp - 0x1330]
mov dword [edx], eax
mov eax, dword [ebp - 0x1330]
cmp dword [eax], 0
jne 0x4592bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1330]
mov dword [ecx + 0x104], eax
xor al, al
jmp 0x45a528
mov edx, dword [ebp - 0x1330]
mov eax, dword [edx + 0x190]
push eax
mov ecx, dword [ebp - 0x1330]
mov edx, dword [ecx + 0x18c]
push edx
mov eax, dword [ebp - 0x1330]
mov ecx, dword [eax + 0x188]
push ecx
mov edx, dword [ebp - 0x1330]
mov eax, dword [edx + 0x184]
push eax
mov ecx, dword [ebp - 0x1330]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov ax, word [0x7efa94]
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.005796b0
add esp, 0xc
mov dx, word [0x7efa90]
mov word [ebp - 0x1258], dx
push 0xa26
push 0
lea eax, [ebp - 0x1256]
push eax
call fcn.005796b0
add esp, 0xc
push 0x3c
push 0
lea ecx, [ebp - 0x132c]
push ecx
call fcn.005796b0
add esp, 0xc
mov dword [ebp - 0x132c], 0x3c
lea edx, [ebp - 0x218]
mov dword [ebp - 0x131c], edx
mov dword [ebp - 0x1318], 0x104
lea eax, [ebp - 0x1258]
mov dword [ebp - 0x1300], eax
mov dword [ebp - 0x12fc], 0x514
mov dword [ebp - 0x1324], 1
lea ecx, [ebp - 0x132c]
push ecx
push 0
mov ecx, dword [ebp - 0x1330]
add ecx, 0x20
call fcn.004144c0
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x20
call fcn.00405580
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x45a522
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x1330]
add ecx, 0x38
call fcn.00405600
mov dword [ebp - 0x1364], 0
push 0
movzx eax, word [ebp - 0x1314]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x1330]
mov eax, dword [edx]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1364], eax
cmp dword [ebp - 0x1364], 0
je 0x45a522
cmp dword [ebp - 0x1320], 2
jne 0x459435
mov dword [ebp - 0x137c], 0x800000
jmp 0x45943f
mov dword [ebp - 0x137c], 0
mov ecx, dword [ebp - 0x137c]
mov dword [ebp - 0x13ac], ecx
mov dword [ebp - 0x1338], 0
mov edx, dword [ebp - 0x13ac]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x1300]
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 4
call fcn.00405580
push eax
mov ecx, dword [ebp - 0x1364]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x1338], eax
cmp dword [ebp - 0x1338], 0
je 0x45a515
mov edx, dword [ebp - 0x1330]
movzx eax, byte [edx + 0x1c]
test eax, eax
jne 0x4594d1
cmp dword [ebp - 0x1320], 2
jne 0x4594d1
mov dword [ebp - 0x126c], 0x3100
push 4
lea ecx, [ebp - 0x126c]
push ecx
push 0x1f
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [ebp - 0x133a], 0
mov dword [ebp - 0x1368], 0
movzx eax, byte [ebp - 0x133a]
test eax, eax
jne 0x45a4f6
mov ecx, dword [ebp - 0x1368]
mov dword [ebp - 0x13a8], ecx
mov edx, dword [ebp - 0x1368]
add edx, 1
mov dword [ebp - 0x1368], edx
cmp dword [ebp - 0x13a8], 3
jae 0x45a4f6
mov dword [ebp - 0x1360], 0
jmp 0x459534
mov eax, dword [ebp - 0x1360]
add eax, 1
mov dword [ebp - 0x1360], eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0xe0
call fcn.0045bd70
cmp dword [ebp - 0x1360], eax
jae 0x4595ba
push 0x1000000
mov ecx, dword [ebp - 0x1360]
push ecx
mov ecx, dword [ebp - 0x1330]
add ecx, 0xe0
call fcn.0045bd50
mov ecx, eax
call fcn.004144c0
push eax
mov edx, dword [ebp - 0x1360]
push edx
mov ecx, dword [ebp - 0x1330]
add ecx, 0xe0
call fcn.0045bd50
mov ecx, eax
call fcn.00405580
push eax
mov eax, dword [ebp - 0x1338]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4595b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1330]
mov dword [ecx + 0x104], eax
jmp 0x459525
mov ecx, dword [ebp - 0x1330]
add ecx, 0xc0
call fcn.004144c0
test eax, eax
jbe 0x459654
push str.Cookie:
lea ecx, [ebp - 0x12a0]
call fcn.00405710
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1330]
add edx, 0xc0
push edx
lea ecx, [ebp - 0x12a0]
call fcn.004147a0
push 0x1000000
lea ecx, [ebp - 0x12a0]
call fcn.004144c0
push eax
lea ecx, [ebp - 0x12a0]
call fcn.00405580
push eax
mov eax, dword [ebp - 0x1338]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x459642
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1330]
mov dword [ecx + 0x104], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12a0]
call fcn.00405650
mov ecx, dword [ebp - 0x1330]
add ecx, 0xec
call fcn.004144c0
test eax, eax
jbe 0x4597d8
xor edx, edx
mov dword [ebp - 0x12f0], edx
mov dword [ebp - 0x12ec], edx
mov dword [ebp - 0x12e8], edx
mov dword [ebp - 0x12f0], 3
mov ax, word [0x7efa98]
mov word [ebp - 0x830], ax
push 0x206
push 0
lea ecx, [ebp - 0x82e]
push ecx
call fcn.005796b0
add esp, 0xc
mov ecx, dword [ebp - 0x1330]
add ecx, 0xec
call fcn.00405580
push eax
push 0x104
lea edx, [ebp - 0x830]
push edx
call fcn.00597075
add esp, 0xc
lea eax, [ebp - 0x830]
mov dword [ebp - 0x12ec], eax
push 0xc
lea ecx, [ebp - 0x12f0]
push ecx
push 0x26
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x45970e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1330]
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x13c
call fcn.004144c0
test eax, eax
jbe 0x4597d8
mov ecx, dword [ebp - 0x1330]
add ecx, 0x13c
call fcn.004144c0
shl eax, 1
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x13c
call fcn.00405580
push eax
push 0x1002
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x459775
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1330]
mov dword [ecx + 0x104], eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x154
call fcn.004144c0
test eax, eax
jbe 0x4597d8
mov ecx, dword [ebp - 0x1330]
add ecx, 0x154
call fcn.004144c0
shl eax, 1
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x154
call fcn.00405580
push eax
push 0x1003
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4597d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1330]
mov dword [ecx + 0x104], eax
movzx edx, byte [ebp + 8]
test edx, edx
je 0x459818
mov dword [ebp - 0x1270], 2
push 4
lea eax, [ebp - 0x1270]
push eax
push 0x3f
mov ecx, dword [ebp - 0x1338]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x459818
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1330]
mov dword [edx + 0x104], eax
mov byte [ebp - 0x1331], 0
push 0x7efabc
mov eax, dword [ebp - 0x1330]
add eax, 4
push eax
call fcn.00417ac0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x459863
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x459861
mov byte [ebp - 0x1331], 1
jmp 0x4598da
push str.POST
mov eax, dword [ebp - 0x1330]
add eax, 4
push eax
call fcn.00417ac0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4598da
push 0
mov edx, dword [ebp - 0x1330]
mov eax, dword [edx + 0xdc]
push eax
mov ecx, dword [ebp - 0x1330]
mov edx, dword [ecx + 0xdc]
push edx
mov eax, dword [ebp - 0x1330]
mov ecx, dword [eax + 0xd8]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4598c8
mov byte [ebp - 0x1331], 1
jmp 0x4598da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1330]
mov dword [ecx + 0x104], eax
movzx edx, byte [ebp - 0x1331]
test edx, edx
jne 0x459b9f
xor eax, eax
mov dword [ebp - 0x12b4], eax
mov dword [ebp - 0x12b0], eax
mov dword [ebp - 0x12ac], eax
mov dword [ebp - 0x12a8], eax
lea ecx, [ebp - 0x12b4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x459b8d
cmp dword [ebp - 0x12b0], 0
je 0x459a52
xor edx, edx
mov dword [ebp - 0x12e4], edx
mov dword [ebp - 0x12e0], edx
mov dword [ebp - 0x12dc], edx
mov dword [ebp - 0x12d8], edx
mov dword [ebp - 0x12d4], edx
mov dword [ebp - 0x12d0], edx
mov dword [ebp - 0x12e4], 3
mov dword [ebp - 0x12e0], 1
mov eax, dword [ebp - 0x12b0]
mov dword [ebp - 0x12dc], eax
mov dword [ebp - 0x12d0], 1
mov dword [ebp - 0x12d4], 0
mov dword [ebp - 0x12d8], 0
xor ecx, ecx
mov dword [ebp - 0x12c0], ecx
mov dword [ebp - 0x12bc], ecx
mov dword [ebp - 0x12b8], ecx
lea edx, [ebp - 0x12c0]
push edx
lea eax, [ebp - 0x12e4]
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x20
call fcn.00405580
push eax
mov ecx, dword [ebp - 0x1330]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x459a3b
push 0xc
lea eax, [ebp - 0x12c0]
push eax
push 0x26
mov ecx, dword [ebp - 0x1338]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x459a0d
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x459a0d
mov byte [ebp - 0x1331], 1
cmp dword [ebp - 0x12bc], 0
je 0x459a23
mov eax, dword [ebp - 0x12bc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x12b8], 0
je 0x459a39
mov ecx, dword [ebp - 0x12b8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x459a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1330]
mov dword [edx + 0x104], eax
jmp 0x459b49
cmp dword [ebp - 0x12ac], 0
je 0x459b49
xor eax, eax
mov dword [ebp - 0x12cc], eax
mov dword [ebp - 0x12c8], eax
mov dword [ebp - 0x12c4], eax
mov dword [ebp - 0x12cc], 3
mov cx, word [0x7efac8]
mov word [ebp - 0x628], cx
push 0x206
push 0
lea edx, [ebp - 0x626]
push edx
call fcn.005796b0
add esp, 0xc
mov eax, dword [ebp - 0x12ac]
push eax
push 0x104
lea ecx, [ebp - 0x628]
push ecx
call fcn.00597075
add esp, 0xc
lea edx, [ebp - 0x628]
mov dword [ebp - 0x12c8], edx
cmp dword [ebp - 0x12a8], 0
je 0x459b1b
mov ax, word [0x7efac4]
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.005796b0
add esp, 0xc
mov edx, dword [ebp - 0x12a8]
push edx
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.00597075
add esp, 0xc
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x12c4], ecx
push 0xc
lea edx, [ebp - 0x12cc]
push edx
push 0x26
mov eax, dword [ebp - 0x1338]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x459b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1330]
mov dword [ecx + 0x104], eax
cmp dword [ebp - 0x12b0], 0
je 0x459b5f
mov edx, dword [ebp - 0x12b0]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x12ac], 0
je 0x459b75
mov eax, dword [ebp - 0x12ac]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x12a8], 0
je 0x459b8b
mov ecx, dword [ebp - 0x12a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x459b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1330]
mov dword [edx + 0x104], eax
movzx eax, byte [ebp - 0x1331]
test eax, eax
je 0x45a4f1
push 0
mov ecx, dword [ebp - 0x1338]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x45a4df
mov dword [ebp - 0x12a4], 0
mov dword [ebp - 0x1354], 0
push 0
lea edx, [ebp - 0x12a4]
push edx
push 0
push 0
push 0x16
mov eax, dword [ebp - 0x1338]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x1354], eax
cmp dword [ebp - 0x1354], 0
jne 0x459c20
cmp dword [ebp - 0x1354], 0
jne 0x45a048
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45a048
xor ecx, ecx
mov eax, dword [ebp - 0x12a4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fb7d7
add esp, 4
mov dword [ebp - 0x13b0], eax
mov eax, dword [ebp - 0x13b0]
mov dword [ebp - 0x1344], eax
cmp dword [ebp - 0x1344], 0
je 0x45a048
mov ecx, dword [ebp - 0x12a4]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x1344]
push edx
call fcn.005796b0
add esp, 0xc
push 0
lea eax, [ebp - 0x12a4]
push eax
mov ecx, dword [ebp - 0x1344]
push ecx
push 0
push 0x16
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x45a002
mov eax, dword [ebp - 0x1344]
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x50
call fcn.00406250
push 0xc
lea ecx, [ebp - 0x1264]
call fcn.00458e60
lea ecx, [ebp - 0x1264]
call fcn.0045bea0
mov dword [ebp - 4], 1
push 0x7efb00
lea ecx, [ebp - 0x1288]
call fcn.00405710
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1330]
movzx edx, byte [ecx + 0x138]
test edx, edx
jne 0x459d65
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x1288]
call fcn.00405600
push 0
lea eax, [ebp - 0x1264]
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x50
push ecx
push 1
push 0
lea edx, [ebp - 0x1288]
push edx
call fcn.004587e0
add esp, 0x18
movzx eax, al
test eax, eax
je 0x459d65
lea ecx, [ebp - 0x1264]
call fcn.0045bd70
test eax, eax
jbe 0x459d65
push 0
lea ecx, [ebp - 0x1264]
call fcn.0045bd50
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x80
call fcn.004147c0
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x1288]
call fcn.00405600
push 0
lea ecx, [ebp - 0x1264]
push ecx
mov edx, dword [ebp - 0x1330]
add edx, 0x50
push edx
push 1
push 0
lea eax, [ebp - 0x1288]
push eax
call fcn.004587e0
add esp, 0x18
movzx ecx, al
test ecx, ecx
je 0x459dda
lea ecx, [ebp - 0x1264]
call fcn.0045bd70
test eax, eax
jbe 0x459dda
push 0
lea ecx, [ebp - 0x1264]
call fcn.0045bd50
mov ecx, eax
call fcn.00405580
push eax
call fcn.00598ec8
add esp, 4
mov edx, dword [ebp - 0x1330]
mov dword [edx + 0xa4], eax
push str.Location:__0_9_
lea ecx, [ebp - 0x1288]
call fcn.00405600
push 0
lea eax, [ebp - 0x1264]
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x50
push ecx
push 1
push 0
lea edx, [ebp - 0x1288]
push edx
call fcn.004587e0
add esp, 0x18
movzx eax, al
test eax, eax
je 0x459e45
lea ecx, [ebp - 0x1264]
call fcn.0045bd70
test eax, eax
jbe 0x459e45
push 0
lea ecx, [ebp - 0x1264]
call fcn.0045bd50
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x16c
call fcn.004147c0
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x1288]
call fcn.00405600
push 0
lea ecx, [ebp - 0x1264]
push ecx
mov edx, dword [ebp - 0x1330]
add edx, 0x50
push edx
push 1
push 0
lea eax, [ebp - 0x1288]
push eax
call fcn.004587e0
add esp, 0x18
movzx ecx, al
test ecx, ecx
je 0x459fe1
lea ecx, [ebp - 0x1264]
call fcn.0045bd70
test eax, eax
jbe 0x459fe1
mov dword [ebp - 0x135c], 0
jmp 0x459eb4
mov edx, dword [ebp - 0x135c]
add edx, 1
mov dword [ebp - 0x135c], edx
lea ecx, [ebp - 0x1264]
call fcn.0045bd70
cmp dword [ebp - 0x135c], eax
jae 0x459f19
mov eax, dword [ebp - 0x135c]
push eax
lea ecx, [ebp - 0x1264]
call fcn.0045bd50
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0xa8
call fcn.004147a0
lea ecx, [ebp - 0x1264]
call fcn.0045bd70
sub eax, 1
cmp dword [ebp - 0x135c], eax
je 0x459f17
push 0x7efb60
mov ecx, dword [ebp - 0x1330]
add ecx, 0xa8
call fcn.004055b0
jmp 0x459ea5
push 0x7efb98
lea ecx, [ebp - 0x13c8]
call fcn.00405710
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x13c8]
push ecx
mov edx, dword [ebp - 0x1330]
add edx, 0xa8
push edx
lea eax, [ebp - 0x13e0]
push eax
call fcn.00458610
add esp, 0xc
mov dword [ebp - 0x1380], eax
mov ecx, dword [ebp - 0x1380]
push ecx
mov ecx, dword [ebp - 0x1330]
add ecx, 0xa8
call fcn.00405690
lea ecx, [ebp - 0x13e0]
call fcn.00405650
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x13c8]
call fcn.00405650
mov ecx, dword [ebp - 0x1330]
add ecx, 0xa8
call fcn.004144c0
test eax, eax
jbe 0x459fe1
mov ecx, dword [ebp - 0x1330]
add ecx, 0xa8
call fcn.004144c0
sub eax, 1
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0xa8
call fcn.004145d0
movzx edx, word [eax]
cmp edx, 0x3b
je 0x459fe1
push 0x7efb94
mov ecx, dword [ebp - 0x1330]
add ecx, 0xa8
call fcn.004055b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1288]
call fcn.00405650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1264]
call fcn.0045be60
mov eax, dword [ebp - 0x1344]
mov dword [ebp - 0x1378], eax
mov ecx, dword [ebp - 0x1378]
push ecx
call fcn.004fb7e0
add esp, 4
cmp dword [ebp - 0x1378], 0
jne 0x45a032
mov dword [ebp - 0x1384], 0
jmp 0x45a048
mov dword [ebp - 0x1344], 0x8123
mov edx, dword [ebp - 0x1344]
mov dword [ebp - 0x1384], edx
mov dword [ebp - 0x12a4], 0
push 0
lea eax, [ebp - 0x12a4]
push eax
push 0
push 0
push 0x13
mov ecx, dword [ebp - 0x1338]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x1354], eax
cmp dword [ebp - 0x1354], 0
jne 0x45a099
cmp dword [ebp - 0x1354], 0
jne 0x45a174
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45a174
xor ecx, ecx
mov eax, dword [ebp - 0x12a4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fb7d7
add esp, 4
mov dword [ebp - 0x1388], eax
mov eax, dword [ebp - 0x1388]
mov dword [ebp - 0x1348], eax
cmp dword [ebp - 0x1348], 0
je 0x45a174
mov ecx, dword [ebp - 0x12a4]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x1348]
push edx
call fcn.005796b0
add esp, 0xc
push 0
lea eax, [ebp - 0x12a4]
push eax
mov ecx, dword [ebp - 0x1348]
push ecx
push 0
push 0x13
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x45a12e
mov eax, dword [ebp - 0x1348]
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x108
call fcn.00405600
mov ecx, dword [ebp - 0x1348]
mov dword [ebp - 0x1374], ecx
mov edx, dword [ebp - 0x1374]
push edx
call fcn.004fb7e0
add esp, 4
cmp dword [ebp - 0x1374], 0
jne 0x45a15e
mov dword [ebp - 0x138c], 0
jmp 0x45a174
mov dword [ebp - 0x1348], 0x8123
mov eax, dword [ebp - 0x1348]
mov dword [ebp - 0x138c], eax
mov dword [ebp - 0x134c], 0x2800
mov dword [ebp - 0x1340], 0
mov ecx, dword [ebp - 0x1330]
cmp dword [ecx + 0x98], 0
je 0x45a1c8
mov edx, dword [ebp - 0x1330]
mov eax, dword [edx + 0x98]
mov dword [ebp - 0x1390], eax
mov ecx, dword [ebp - 0x1390]
push ecx
call fcn.004fb7e0
add esp, 4
mov edx, dword [ebp - 0x1330]
mov dword [edx + 0x98], 0
mov eax, dword [ebp - 0x134c]
push eax
call fcn.004fb7d7
add esp, 4
mov dword [ebp - 0x1394], eax
mov ecx, dword [ebp - 0x1330]
mov edx, dword [ebp - 0x1394]
mov dword [ecx + 0x98], edx
mov eax, dword [ebp - 0x1330]
cmp dword [eax + 0x98], 0
jne 0x45a20a
mov byte [ebp - 0x1339], 0
jmp 0x45a4f6
mov ecx, dword [ebp - 0x134c]
push ecx
push 0
mov edx, dword [ebp - 0x1330]
mov eax, dword [edx + 0x98]
push eax
call fcn.005796b0
add esp, 0xc
mov dword [ebp - 0x12a4], 0
lea ecx, [ebp - 0x12a4]
push ecx
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x45a478
mov eax, dword [ebp - 0x1340]
push eax
mov ecx, dword [ebp - 0x1330]
call fcn.0045a7e0
mov ecx, dword [ebp - 0x12a4]
add ecx, 1
push ecx
call fcn.004fb7d7
add esp, 4
mov dword [ebp - 0x1398], eax
mov edx, dword [ebp - 0x1398]
mov dword [ebp - 0x1350], edx
cmp dword [ebp - 0x1350], 0
je 0x45a476
mov eax, dword [ebp - 0x12a4]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x1350]
push ecx
call fcn.005796b0
add esp, 0xc
mov dword [ebp - 0x1268], 0
lea edx, [ebp - 0x1268]
push edx
mov eax, dword [ebp - 0x12a4]
push eax
mov ecx, dword [ebp - 0x1350]
push ecx
mov edx, dword [ebp - 0x1338]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x45a430
mov eax, dword [ebp - 0x1268]
add eax, dword [ebp - 0x1340]
cmp eax, dword [ebp - 0x134c]
jbe 0x45a3f5
mov ecx, dword [ebp - 0x1330]
mov edx, dword [ecx + 0x98]
mov dword [ebp - 0x1358], edx
mov eax, dword [ebp - 0x134c]
shl eax, 1
push eax
call fcn.004fb7d7
add esp, 4
mov dword [ebp - 0x139c], eax
mov ecx, dword [ebp - 0x1330]
mov edx, dword [ebp - 0x139c]
mov dword [ecx + 0x98], edx
mov eax, dword [ebp - 0x1330]
cmp dword [eax + 0x98], 0
jne 0x45a360
mov ecx, dword [ebp - 0x1330]
mov edx, dword [ebp - 0x1358]
mov dword [ecx + 0x98], edx
mov byte [ebp - 0x1339], 0
jmp 0x45a497
mov eax, dword [ebp - 0x134c]
shl eax, 1
mov dword [ebp - 0x134c], eax
mov ecx, dword [ebp - 0x134c]
push ecx
push 0
mov edx, dword [ebp - 0x1330]
mov eax, dword [edx + 0x98]
push eax
call fcn.005796b0
add esp, 0xc
mov ecx, dword [ebp - 0x1340]
push ecx
mov edx, dword [ebp - 0x1358]
push edx
mov eax, dword [ebp - 0x1330]
mov ecx, dword [eax + 0x98]
push ecx
call fcn.005789a0
add esp, 0xc
mov edx, dword [ebp - 0x1358]
mov dword [ebp - 0x1370], edx
mov eax, dword [ebp - 0x1370]
push eax
call fcn.004fb7e0
add esp, 4
cmp dword [ebp - 0x1370], 0
jne 0x45a3df
mov dword [ebp - 0x13a0], 0
jmp 0x45a3f5
mov dword [ebp - 0x1358], 0x8123
mov ecx, dword [ebp - 0x1358]
mov dword [ebp - 0x13a0], ecx
mov edx, dword [ebp - 0x1268]
push edx
mov eax, dword [ebp - 0x1350]
push eax
mov ecx, dword [ebp - 0x1330]
mov edx, dword [ecx + 0x98]
add edx, dword [ebp - 0x1340]
push edx
call fcn.005789a0
add esp, 0xc
mov eax, dword [ebp - 0x1340]
add eax, dword [ebp - 0x1268]
mov dword [ebp - 0x1340], eax
mov ecx, dword [ebp - 0x1350]
mov dword [ebp - 0x136c], ecx
mov edx, dword [ebp - 0x136c]
push edx
call fcn.004fb7e0
add esp, 4
cmp dword [ebp - 0x136c], 0
jne 0x45a460
mov dword [ebp - 0x13a4], 0
jmp 0x45a476
mov dword [ebp - 0x1350], 0x8123
mov eax, dword [ebp - 0x1350]
mov dword [ebp - 0x13a4], eax
jmp 0x45a48a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1330]
mov dword [ecx + 0x104], eax
cmp dword [ebp - 0x12a4], 0
ja 0x45a228
mov edx, dword [ebp - 0x1340]
push edx
mov ecx, dword [ebp - 0x1330]
call fcn.0045a7e0
mov eax, dword [ebp - 0x1330]
mov ecx, dword [ebp - 0x1340]
mov dword [eax + 0x9c], ecx
mov edx, dword [ebp - 0x1330]
mov eax, dword [edx + 0x98]
push eax
mov ecx, dword [ebp - 0x1330]
add ecx, 0x68
call fcn.00414b90
mov byte [ebp - 0x133a], 1
jmp 0x45a4f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1330]
mov dword [ecx + 0x104], eax
jmp 0x4594e2
movzx edx, byte [ebp - 0x133a]
test edx, edx
jne 0x45a508
mov byte [ebp - 0x1339], 0
mov eax, dword [ebp - 0x1338]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x1364]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, byte [ebp - 0x1339]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb522
mov esp, ebp
pop ebp
ret 4