Function at 0x4a1be8
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x18
push 0
push 0
dec ecx
jne 0x4a1bf1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x29], dl
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x4a25fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x34], 0x80004005
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
xor ecx, ecx
push ebp
push 0x4a259c
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx]
call fcn.00406f68
mov byte [ebp - 0x35], 0
mov edx, dword [ebp - 4]
mov eax, 0x4a261c
call fcn.00407e24
test eax, eax
jle 0x4a1c8c
xor eax, eax
push ebp
push 0x4a1c82
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.004754bc
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0041b6c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a1c8c
cmp byte [0x4b6f00], 0
jne 0x4a1ca2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a25a6
xor eax, eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x36], 0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00406f68
mov edx, dword [ebp - 0x10]
mov eax, 0x4a262c
call fcn.00407e24
dec eax
je 0x4a1cf6
mov edx, dword [ebp - 0x10]
mov eax, 0x4a2640
call fcn.00407e24
dec eax
je 0x4a1cf6
mov edx, dword [ebp - 0x10]
mov eax, 0x4a2654
call fcn.00407e24
dec eax
je 0x4a1cf6
mov edx, dword [ebp - 0x10]
mov eax, 0x4a266c
call fcn.00407e24
dec eax
jne 0x4a1d3a
mov byte [ebp - 0x35], 1
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4a1d06
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x5c]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x4a2688
call fcn.00407e24
mov edx, eax
inc edx
mov ecx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00407d38
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.0041ba00
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x10]
call fcn.00406f68
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x10]
call fcn.0041b6c4
mov edx, dword [ebp - 0x60]
mov eax, 0x4a2698
call fcn.00407e24
test eax, eax
jne 0x4a1d88
mov edx, dword [ebp - 0x10]
mov eax, 0x4a26a8
call fcn.00407e24
dec eax
jne 0x4a1d78
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4a26bc
call fcn.00407bc8
jmp 0x4a1d88
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4a26d4
call fcn.00407bc8
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x10]
call fcn.0041b6c4
mov edx, dword [ebp - 0x64]
mov eax, 0x4a26f0
call fcn.00407e24
dec eax
je 0x4a1e03
cmp byte [ebp + 0xc], 0
je 0x4a1e03
lea eax, [ebp - 0x70]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x4a2698
call fcn.00407e24
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00407d38
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.0041b6c4
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x4a2708
call fcn.00407bc8
mov edx, dword [ebp - 0x68]
mov eax, 0x80000000
call fcn.00457d24
test al, al
je 0x4a1e03
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a25a6
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004a2908
test al, al
jne 0x4a1e24
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00406f68
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x14]
call fcn.0041b900
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x14]
call fcn.00406f68
mov bl, 1
cmp dword [ebp - 0x14], 0
je 0x4a1e93
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4a1e4e
sub eax, 4
mov eax, dword [eax]
mov edx, eax
test edx, edx
jle 0x4a1e93
mov esi, 1
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + esi*2 - 2]
cmp ax, 0x61
jb 0x4a1e6d
cmp ax, 0x7a
jbe 0x4a1e8f
cmp ax, 0x30
jb 0x4a1e79
cmp ax, 0x39
jbe 0x4a1e8f
cmp ax, 0x2e
je 0x4a1e8f
cmp ax, 0x2d
je 0x4a1e8f
cmp ax, 0x5f
je 0x4a1e8f
xor ebx, ebx
jmp 0x4a1e93
inc esi
dec edx
jne 0x4a1e59
test bl, bl
je 0x4a1f3f
xor esi, esi
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00406f68
mov edx, dword [ebp - 0x10]
mov eax, 0x4a273c
call fcn.00407e24
dec eax
jne 0x4a1ebc
mov al, 1
jmp 0x4a1eeb
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x4a1ec8
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x78]
push eax
mov ecx, 1
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.00407d38
mov eax, dword [ebp - 0x78]
mov edx, 0x4a273c
call fcn.00407d00
sete al
test al, al
je 0x4a1ef3
xor ebx, ebx
jmp 0x4a1f3f
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00406f68
jmp 0x4a1f2b
inc esi
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x4a1f0d
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x4a273c
call fcn.00407e24
mov edx, eax
inc edx
mov ecx, edi
mov eax, dword [ebp - 0x10]
call fcn.00407d38
mov edx, dword [ebp - 0x10]
mov eax, 0x4a273c
call fcn.00407e24
test eax, eax
jg 0x4a1f00
mov dword [ebp - 0x3c], esi
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
call fcn.0041b6c4
mov edx, dword [ebp - 0x7c]
mov eax, 0x4a274c
call fcn.00407e24
dec eax
jne 0x4a1fce
test bl, bl
je 0x4a1fce
cmp dword [ebp - 0x3c], 1
jne 0x4a1fce
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0041b6c4
mov esi, dword [ebp - 4]
test esi, esi
je 0x4a1f7b
sub esi, 4
mov esi, dword [esi]
push 0x4a2764
lea eax, [ebp - 0x84]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x4a273c
call fcn.00407e24
mov edx, eax
inc edx
mov ecx, esi
mov eax, dword [ebp - 0x24]
call fcn.00407d38
push dword [ebp - 0x84]
push 0x4a2764
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00407c50
mov eax, dword [ebp - 0x80]
mov edx, 0x4a2774
call fcn.00407e24
test eax, eax
jne 0x4a1fce
mov byte [ebp - 0x35], 1
xor ecx, ecx
push ebp
push 0x4a2588
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, dword [ebp - 4]
mov eax, 0x4a262c
call fcn.00407e24
dec eax
je 0x4a201c
mov edx, dword [ebp - 4]
mov eax, 0x4a2640
call fcn.00407e24
dec eax
je 0x4a201c
mov edx, dword [ebp - 4]
mov eax, 0x4a2654
call fcn.00407e24
dec eax
je 0x4a201c
mov edx, dword [ebp - 0x10]
mov eax, 0x4a266c
call fcn.00407e24
dec eax
jne 0x4a2068
mov esi, dword [ebp - 4]
test esi, esi
je 0x4a2028
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x8c]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x4a2688
call fcn.00407e24
mov edx, eax
inc edx
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.00407d38
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
call fcn.0041ba00
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 4]
call fcn.00406f68
cmp byte [ebp - 0x35], 0
jne 0x4a2075
mov eax, ebx
xor al, 1
mov byte [ebp - 0x35], al
test bl, bl
je 0x4a2085
cmp dword [ebp - 0x3c], 0
jle 0x4a2085
cmp byte [ebp - 0x35], 0
je 0x4a2090
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406f68
mov byte [ebp - 0x36], 0
cmp byte [ebp - 0x35], 0
jne 0x4a22d6
test bl, bl
je 0x4a2129
cmp dword [ebp - 0x3c], 1
jl 0x4a2129
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00406f68
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x10]
call fcn.0041b6c4
mov edx, dword [ebp - 0x90]
mov eax, 0x4a27c8
call fcn.00407e24
dec eax
jle 0x4a20e5
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406f68
jmp 0x4a2117
mov edx, dword [ebp - 4]
mov eax, 0x4a26a8
call fcn.00407e24
dec eax
jne 0x4a2107
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x4a26bc
call fcn.00407bc8
jmp 0x4a2117
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x4a26d4
call fcn.00407bc8
call fcn.004062ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a25a6
cmp byte [ebp - 0x36], 0
jne 0x4a22d6
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00406f68
lea eax, [ebp - 0xc]
call fcn.00406b40
mov byte [ebp - 0x36], 1
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x10]
call fcn.0041b6c4
mov edx, dword [ebp - 0x94]
mov eax, 0x4a26d4
call fcn.00407e24
dec eax
je 0x4a219d
mov edx, dword [ebp - 0x10]
mov eax, 0x4a26a8
call fcn.00407e24
dec eax
jne 0x4a218d
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4a26bc
call fcn.00407bc8
jmp 0x4a219d
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4a26d4
call fcn.00407bc8
cmp byte [ebp + 0xc], 0
je 0x4a21c5
test bl, bl
je 0x4a21bc
cmp dword [ebp - 0x3c], 0
jle 0x4a21bc
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00406f68
mov byte [ebp - 0x36], 0
mov byte [ebp - 0x29], 0
jmp 0x4a22d6
push 0
push 0
push 0
push 0
push 0x4a27d0
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4a22d6
xor eax, eax
push ebp
push 0x4a22cf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x420f200
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00407984
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4a2279
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x2ee7
je 0x4a22b8
push 0x4a27ec
lea eax, [ebp - 0x9c]
call fcn.0045a588
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.00422f78
push dword [ebp - 0x98]
push dword [0x4b6efc]
push 0x4a2808
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 5
call fcn.00407c50
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x36], 0
jmp 0x4a22b8
xor eax, eax
push ebp
push 0x4a22b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00406f68
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x36], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a22b8
mov eax, dword [ebp - 0x50]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a22d6
mov eax, dword [ebp - 0x4c]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2592
movzx eax, byte [ebp - 0x36]
or al, byte [ebp - 0x35]
je 0x4a243d
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 4]
call fcn.0041ba00
cmp dword [ebp - 0xa0], 0
je 0x4a243d
lea edx, [ebp - 0xa4]
mov eax, dword [ebp - 4]
call fcn.0041b6c4
mov edx, dword [ebp - 0xa4]
mov eax, 0x4a26d4
call fcn.00407e24
dec eax
jne 0x4a2369
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4a2338
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xa8]
mov eax, dword [ebp - 4]
call fcn.0041b6c4
mov edx, dword [ebp - 0xa8]
mov eax, 0x4a26d4
call fcn.00407e24
mov edx, eax
add edx, 7
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.00407d38
mov edx, dword [ebp - 4]
mov eax, edx
test eax, eax
je 0x4a2377
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4a23c6
mov eax, edx
test eax, eax
je 0x4a2386
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x4a2395
mov al, 1
jmp 0x4a23ac
mov eax, edx
test eax, eax
je 0x4a23a0
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
cmp word [ecx + eax*2 - 2], 0x2f
sete al
test al, al
je 0x4a23c6
mov eax, edx
test eax, eax
je 0x4a23bb
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
lea eax, [ebp - 4]
call fcn.00407af0
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 4]
call fcn.0040a838
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xac]
call fcn.00475170
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 4]
call fcn.00406f68
lea ecx, [ebp - 0xb4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.004a52e8
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 8]
call fcn.00406f68
movzx eax, byte [0x4a2828]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4b71dc]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov edx, 0x4a2838
call fcn.00423350
mov eax, dword [ebp - 0x30]
mov byte [eax], 1
jmp 0x4a2563
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 8]
call fcn.0041b6c4
mov edx, dword [ebp - 0xb8]
mov eax, 0x4a2698
call fcn.00407e24
test eax, eax
jne 0x4a2491
mov edx, dword [ebp - 8]
mov eax, 0x4a26a8
call fcn.00407e24
dec eax
jne 0x4a2481
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x4a26bc
call fcn.00407bc8
jmp 0x4a2491
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x4a26d4
call fcn.00407bc8
cmp byte [ebp - 0x29], 0
je 0x4a2563
cmp byte [ebp + 0xc], 0
jne 0x4a2563
push 0
push 0
push 0
push 0
push 0x4a27d0
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4a2563
xor eax, eax
push ebp
push 0x4a255c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x420f200
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
mov eax, dword [ebp - 0x4c]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4a253c
push 0x4a27ec
lea eax, [ebp - 0xc0]
call fcn.0045a588
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.00422f78
push dword [ebp - 0xbc]
push dword [0x4b6efc]
push 0x4a2808
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 5
call fcn.00407c50
jmp 0x4a2545
mov eax, dword [ebp - 0x50]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2563
mov eax, dword [ebp - 0x4c]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
lea ecx, [ebp - 0xc4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.004a52e8
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0x28]
call fcn.00406f20
xor eax, eax
mov dword [ebp - 0x34], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2603
lea eax, [ebp - 0xc4]
mov edx, 5
call fcn.00406ba0
lea eax, [ebp - 0xb0]
call fcn.00406b64
lea eax, [ebp - 0xac]
mov edx, 0x16
call fcn.00406ba0
lea eax, [ebp - 0x24]
call fcn.00406b40
lea eax, [ebp - 0x20]
call fcn.0040a0fc
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00406ba0
ret