Function at 0x4f9924
Capabilities:
Connect to http server
Make an http request with a cookie
Read data from internet
Receive data
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x9a
push 0
push 0
dec ecx
jne 0x4f992d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.00404ca0
mov eax, dword [ebp + 0x1c]
call fcn.00404ca0
mov eax, dword [ebp + 0x18]
call fcn.00404ca0
mov eax, dword [ebp + 0x14]
call fcn.00404ca0
mov eax, dword [ebp + 0x10]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x4fa2b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004047f0
cmp dword [ebp - 8], 0
je 0x4fa269
push ebp
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 0x1c]
call fcn.004f95dc
pop ecx
lea edx, [ebp - 0x44c]
mov eax, dword [ebp - 0x2c]
call fcn.00409234
cmp dword [ebp - 0x44c], 0
jne 0x4f99b7
call fcn.0040e250
push 0
push 0
push 3
push 0
push 0
mov ax, word [ebp - 4]
push eax
mov eax, dword [ebp - 0x2c]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push 0x4fa2c4
mov eax, dword [ebp - 0x30]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov edx, 0x4fa2d8
call fcn.00404bfc
jne 0x4f9a2c
push 0x20000000
push 0x20
push 0x4fa2e0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
lea eax, [ebp - 0x450]
mov edx, 0x4fa304
call fcn.004049e8
mov eax, dword [ebp - 0x450]
call fcn.00404ab0
push eax
push 0x4fa304
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
lea eax, [ebp - 0x458]
mov ecx, dword [ebp + 0x18]
mov edx, 0x4fa318
call fcn.00404afc
mov eax, dword [ebp - 0x458]
call fcn.00404cb0
mov edx, eax
lea eax, [ebp - 0x454]
call fcn.004049e8
mov eax, dword [ebp - 0x454]
call fcn.00404ab0
push eax
lea eax, [ebp - 0x45c]
mov ecx, dword [ebp + 0x18]
mov edx, 0x4fa318
call fcn.00404afc
mov eax, dword [ebp - 0x45c]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
cmp dword [ebx + 0x64], 0
je 0x4f9ae5
push 0x20000000
mov eax, dword [ebx + 0x64]
call fcn.00404ab0
push eax
mov eax, dword [ebx + 0x64]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
push 0x16
push 0x4fa324
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0xc]
mov edx, 0x4fa2d8
call fcn.00404bfc
jne 0x4f9b3b
push 0x20000000
mov eax, dword [ebx + 0x68]
call fcn.00404cb0
mov edi, eax
mov edx, edi
lea eax, [ebp - 0x460]
call fcn.004049e8
mov eax, dword [ebp - 0x460]
call fcn.00404ab0
push eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
mov eax, dword [ebx + 0x6c]
call fcn.00404cb0
mov edi, eax
mov edx, edi
lea eax, [ebp - 0x464]
call fcn.004049e8
mov eax, dword [ebp - 0x464]
call fcn.00404ab0
push eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
cmp dword [ebp - 4], 0x50
je 0x4f9c01
push 0x20000000
push 0x4fa344
push dword [ebp - 0x2c]
push 0x4fa354
lea edx, [ebp - 0x46c]
mov eax, dword [ebp - 4]
call fcn.004098d0
push dword [ebp - 0x46c]
lea eax, [ebp - 0x468]
mov edx, 4
call fcn.00404b70
mov eax, dword [ebp - 0x468]
call fcn.00404ab0
push eax
push 0x4fa344
push dword [ebp - 0x2c]
push 0x4fa354
lea edx, [ebp - 0x474]
mov eax, dword [ebp - 4]
call fcn.004098d0
push dword [ebp - 0x474]
lea eax, [ebp - 0x470]
mov edx, 4
call fcn.00404b70
mov eax, dword [ebp - 0x470]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
jmp 0x4f9c4d
push 0x20000000
lea eax, [ebp - 0x478]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x4fa344
call fcn.00404afc
mov eax, dword [ebp - 0x478]
call fcn.00404ab0
push eax
lea eax, [ebp - 0x47c]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x4fa344
call fcn.00404afc
mov eax, dword [ebp - 0x47c]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0xc]
mov edx, 0x4fa2d8
call fcn.00404bfc
jne 0x4f9cd4
push 0x20000000
mov eax, dword [ebp + 0x14]
call fcn.00404ab0
lea edx, [ebp - 0x484]
call fcn.004098d0
mov ecx, dword [ebp - 0x484]
lea eax, [ebp - 0x480]
mov edx, 0x4fa360
call fcn.00404afc
mov eax, dword [ebp - 0x480]
call fcn.00404ab0
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404ab0
lea edx, [ebp - 0x48c]
call fcn.004098d0
mov ecx, dword [ebp - 0x48c]
lea eax, [ebp - 0x488]
mov edx, 0x4fa360
call fcn.00404afc
mov eax, dword [ebp - 0x488]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
push 0x20000000
push 0x16
push 0x4fa374
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0xc]
mov edx, 0x4fa2d8
call fcn.00404bfc
jne 0x4f9d0d
push 0x20000000
push 0x17
push 0x4fa38c
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
cmp dword [ebp + 0x10], 0
je 0x4f9d33
push 0x20000000
mov eax, dword [ebp + 0x10]
call fcn.00404ab0
push eax
mov eax, dword [ebp + 0x10]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0xc]
mov edx, 0x4fa2d8
call fcn.00404bfc
jne 0x4f9d6b
mov eax, dword [ebp + 0x14]
call fcn.00404cb0
call fcn.0040a20c
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404cb0
push eax
push 0
push 0x4fa3a4
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
jmp 0x4f9d7c
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x2800
lea eax, [ebx + 0x58]
call fcn.004047f0
mov eax, dword [ebp - 0x40]
call fcn.004027b4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
call fcn.004027b4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
push eax
push 0x16
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x31], al
lea eax, [ebp - 0x28]
call fcn.004047f0
cmp byte [ebp - 0x31], 0
je 0x4f9ddf
lea eax, [ebx + 0x58]
mov edx, dword [ebp - 0x3c]
call fcn.004049e8
lea eax, [ebx + 0x70]
mov edx, dword [ebx + 0x58]
call fcn.00404844
jmp 0x4f9f48
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x490]
mov eax, dword [ebx + 0x58]
call fcn.00408f10
mov eax, dword [ebp - 0x490]
push eax
lea edx, [ebp - 0x494]
mov eax, 0x4fa3b0
call fcn.00408f10
mov eax, dword [ebp - 0x494]
pop edx
call fcn.00404df4
add eax, 0xb
push eax
mov eax, dword [ebx + 0x58]
call fcn.00404ab0
mov ecx, eax
mov eax, dword [ebx + 0x58]
pop edx
call fcn.00404d10
lea eax, [ebp - 0x49c]
push eax
mov edx, dword [ebp - 0x24]
mov eax, 0x4fa3c4
call fcn.00404df4
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.00404d10
mov eax, dword [ebp - 0x49c]
lea edx, [ebp - 0x498]
call fcn.00409234
mov edx, dword [ebp - 0x498]
lea eax, [ebp - 0x24]
call fcn.00404888
mov edx, dword [ebp - 0x24]
mov eax, 0x4fa3d0
call fcn.00404df4
test eax, eax
jle 0x4f9ec6
lea eax, [ebp - 0x4a0]
push eax
mov edx, dword [ebp - 0x24]
mov eax, 0x4fa3d0
call fcn.00404df4
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.00404d10
mov ecx, dword [ebp - 0x4a0]
lea eax, [ebp - 0x24]
mov edx, 0x4fa3dc
call fcn.00404afc
jmp 0x4f9ee0
push 0x4fa3dc
push dword [ebp - 0x24]
push 0x4fa3d0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404b70
mov edx, dword [ebp - 0x24]
mov eax, 0x4fa3e8
call fcn.00404df4
test eax, eax
jne 0x4f9efc
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00404ab8
lea eax, [ebx + 0x58]
push eax
lea edx, [ebp - 0x4a4]
mov eax, dword [ebx + 0x58]
call fcn.00408f10
mov eax, dword [ebp - 0x4a4]
push eax
lea edx, [ebp - 0x4a8]
mov eax, 0x4fa3b0
call fcn.00408f10
mov eax, dword [ebp - 0x4a8]
pop edx
call fcn.00404df4
add eax, 0xb
push eax
mov eax, dword [ebx + 0x58]
call fcn.00404ab0
mov ecx, eax
mov eax, dword [ebx + 0x58]
pop edx
call fcn.00404d10
lea edx, [ebp - 0x4ac]
mov eax, dword [ebx + 0x58]
call fcn.00408f10
mov eax, dword [ebp - 0x4ac]
push eax
lea edx, [ebp - 0x4b0]
mov eax, 0x4fa3b0
call fcn.00408f10
mov eax, dword [ebp - 0x4b0]
pop edx
call fcn.00404df4
test eax, eax
jg 0x4f9def
lea eax, [ebx + 0x58]
mov edx, dword [ebp - 0x28]
call fcn.00404844
lea edx, [ebp - 0x4b4]
mov eax, dword [ebx + 0x70]
call fcn.00408f10
mov eax, dword [ebp - 0x4b4]
push eax
lea edx, [ebp - 0x4b8]
mov eax, 0x4fa360
call fcn.00408f10
mov eax, dword [ebp - 0x4b8]
pop edx
call fcn.00404df4
test eax, eax
jle 0x4fa03a
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x4bc]
mov eax, dword [ebx + 0x70]
call fcn.00408f10
mov eax, dword [ebp - 0x4bc]
push eax
lea edx, [ebp - 0x4c0]
mov eax, 0x4fa360
call fcn.00408f10
mov eax, dword [ebp - 0x4c0]
pop edx
call fcn.00404df4
mov edx, eax
add edx, 0x10
mov eax, dword [ebx + 0x70]
mov ecx, 0x64
call fcn.00404d10
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x28]
mov eax, 0x4fa3fc
call fcn.00404df4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x28]
call fcn.00404d10
mov edx, 0x802
mov eax, dword [ebp - 0x28]
call fcn.00409a7c
mov edi, eax
jmp 0x4fa03f
mov edi, 0x802
lea eax, [ebp - 0x28]
call fcn.004047f0
lea eax, [ebp - 0x24]
call fcn.004047f0
cmp dword [ebp - 0x3c], 0
je 0x4fa05d
mov eax, dword [ebp - 0x3c]
call fcn.004027d4
mov eax, dword [ebp - 0x40]
call fcn.004027b4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x3c]
push eax
push 0x13
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
lea eax, [ebp - 0x4c4]
mov edx, dword [ebp - 0x3c]
call fcn.004049e8
mov eax, dword [ebp - 0x4c4]
mov edx, 0x194
call fcn.00409a7c
mov dword [ebx + 0x9c], eax
xor eax, eax
push ebp
push 0x4fa262
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x19000
lea eax, [ebp - 0x18]
push eax
push 0x401
lea eax, [ebp - 0x445]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x18], 0
je 0x4fa1cd
cmp dword [ebp - 0x1c], 0x989680
ja 0x4fa1cd
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x445], 0
lea eax, [ebp - 0x4c8]
lea edx, [ebp - 0x445]
mov ecx, 0x401
call fcn.00404a60
mov edx, dword [ebp - 0x4c8]
lea eax, [ebp - 0x24]
call fcn.00404ab8
add esi, dword [ebp - 0x18]
imul eax, esi, 0x64
xor edx, edx
div edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x94]
cmp eax, dword [0x50bd2c]
jne 0x4fa0b1
mov eax, dword [0x50a59c]
mov eax, dword [eax + 0x380]
mov edx, esi
call fcn.0044da34
push 0x4fa408
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4d0]
call fcn.004099bc
push dword [ebp - 0x4d0]
push 0x4fa41c
mov eax, edi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4d4]
call fcn.004099bc
push dword [ebp - 0x4d4]
push 0x4fa428
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x4d8]
call fcn.004099bc
push dword [ebp - 0x4d8]
push 0x4fa434
lea eax, [ebp - 0x4cc]
mov edx, 7
call fcn.00404b70
mov edx, dword [ebp - 0x4cc]
mov eax, dword [0x50a59c]
mov eax, dword [eax + 0x3bc]
call fcn.0046feac
jmp 0x4fa0b1
mov eax, dword [ebx + 0x94]
cmp eax, dword [0x50bd2c]
jne 0x4fa226
mov eax, dword [0x50a59c]
mov eax, dword [eax + 0x3bc]
mov edx, 0x4fa440
call fcn.0046feac
mov eax, dword [0x50a59c]
mov eax, dword [eax + 0x380]
xor edx, edx
call fcn.0044d9ec
mov eax, dword [0x50a59c]
mov eax, dword [eax + 0x380]
xor edx, edx
call fcn.0044da34
mov eax, dword [0x50a59c]
mov eax, dword [eax + 0x380]
mov edx, edi
call fcn.0044da10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa269
cmp dword [ebp - 0x38], 0
je 0x4fa241
mov eax, dword [ebp - 0x38]
call fcn.004027d4
cmp dword [ebp - 0x3c], 0
je 0x4fa24f
mov eax, dword [ebp - 0x3c]
call fcn.004027d4
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
call fcn.00404844
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa2bb
lea eax, [ebp - 0x4d8]
mov edx, 0x24
call fcn.00404814
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00404814
lea eax, [ebp - 0xc]
call fcn.004047f0
lea eax, [ebp + 0x10]
mov edx, 4
call fcn.00404814
ret