Function at 0x404cce
Capabilities:
Prepare http request

Disassembly:
push 0xcc
mov eax, 0x500df2
call fcn.004c8175
mov edi, ecx
mov dword [ebp - 0x9c], edi
xor ebx, ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 4], 1
cmp dword [edi + 0xc4], ebx
je 0x40512b
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x98], eax
cmp dword [eax + 0x14], 8
jb 0x404d2b
mov eax, dword [eax]
mov dword [ebp - 0x98], eax
push eax
call fcn.004e28ec
pop ecx
push eax
push dword [ebp - 0x98]
lea esi, [edi + 0x1c]
mov ecx, esi
call fcn.0040282f
cmp dword [edi + 0x2c], 8
jb 0x404de5
push 8
push ebx
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.004066b6
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x404d74
mov byte [ebp - 0x98], bl
push dword [ebp - 0x98]
push eax
call fcn.00406ca3
lea ecx, [ebp - 0x5c]
call fcn.004024d8
lea ecx, [ebp - 0x2c]
call fcn.004055b6
push str.https:__
lea ecx, [ebp - 0x2c]
call fcn.00403400
test al, al
jne 0x404dc5
push 7
push ebx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004066b6
push str.http:__
mov ecx, eax
mov dword [ebp - 0x94], 1
call fcn.00403400
mov byte [ebp - 0x8d], 1
test al, al
je 0x404dcb
mov byte [ebp - 0x8d], bl
test byte [ebp - 0x94], 1
je 0x404ddc
lea ecx, [ebp - 0x5c]
call fcn.004024d8
cmp byte [ebp - 0x8d], 0
je 0x404e04
push esi
mov edx, str.http:__
lea ecx, [ebp - 0x5c]
call fcn.00406fe4
pop ecx
push eax
mov ecx, esi
call fcn.00406733
lea ecx, [ebp - 0x5c]
call fcn.004024d8
push 0x3c
lea eax, [ebp - 0xd8]
push ebx
push eax
call fcn.004d3200
or eax, 0xffffffff
mov dword [ebp - 0xd8], 0x3c
add esp, 0xc
mov dword [ebp - 0xd0], eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa0], eax
jb 0x404e43
mov esi, dword [esi]
lea eax, [ebp - 0xd8]
push eax
push ebx
push esi
call fcn.004e28ec
pop ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x405123
mov esi, 0x573694
mov dword [edi + 0x44], ebx
push esi
mov dword [edi + 0x40], ebx
call fcn.004e28ec
pop ecx
push eax
push esi
lea ecx, [edi + 0x48]
call fcn.0040282f
mov eax, dword [edi + 0xc8]
test eax, eax
je 0x404e8f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0xc8]
push esi
call fcn.004e28ec
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.0040282f
push ebx
push 0x57392c
lea ecx, [ebp - 0x44]
call fcn.004021bb
lea ecx, [ebp - 0x44]
test eax, eax
jg 0x404ee1
push ebx
push 0x573930
call fcn.004021bb
test eax, eax
jle 0x404f0d
lea ecx, [ebp - 0x44]
push eax
push ebx
lea eax, [ebp - 0x5c]
push eax
call fcn.004066b6
lea ecx, [ebp - 0x44]
cmp ecx, eax
je 0x404f05
mov byte [ebp - 0x94], bl
push dword [ebp - 0x94]
push eax
call fcn.00406ca3
lea ecx, [ebp - 0x5c]
call fcn.004024d8
cmp dword [ebp - 0x34], 0
jne 0x404f2a
mov esi, dword [ebp - 0xc8]
push esi
call fcn.004e28ec
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.0040282f
mov esi, dword [edi + 0xcc]
test esi, esi
je 0x404f55
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.00402bb3
test al, al
je 0x404f4e
movzx eax, word [ebp - 0xc0]
cmp eax, dword [edi + 0x18]
je 0x404f9e
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push ebx
push dword [ebp - 0xc0]
cmovae eax, dword [ebp - 0x44]
push eax
push dword [edi + 0xc4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 0xcc], eax
test eax, eax
jne 0x404f89
mov dword [edi + 0xc8], ebx
jmp 0x40511b
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.00402357
movzx eax, word [ebp - 0xc0]
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x10]
push 0x573694
call fcn.00403400
test al, al
je 0x404fde
mov esi, 0x573934
push esi
call fcn.004e28ec
pop ecx
push eax
push esi
lea ecx, [ebp - 0x74]
call fcn.0040282f
jmp 0x405064
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 8
jb 0x404fe9
mov esi, dword [esi]
push esi
call fcn.004e28ec
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040282f
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
cmp esi, eax
je 0x405040
sub edx, esi
mov ebx, eax
mov edi, edx
movzx eax, word [esi]
push eax
call fcn.004dd83d
mov word [esi + edi], ax
add esi, 2
pop ecx
cmp esi, ebx
jne 0x405023
mov edi, dword [ebp - 0x9c]
xor ebx, ebx
cmp dword [edi + 0x60], ebx
je 0x405058
push 0x57393c
lea ecx, [ebp - 0x2c]
call fcn.00403400
movzx eax, al
mov dword [edi + 0x38], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x74]
call fcn.00402357
xor eax, eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0xa8], 1
jae 0x405091
mov esi, 0x573930
push esi
call fcn.004e28ec
jmp 0x4050a9
mov eax, dword [ebp - 0xac]
push eax
mov dword [ebp - 0x9c], eax
call fcn.004e28ec
mov esi, dword [ebp - 0x9c]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x8c]
call fcn.0040282f
mov eax, dword [ebp - 0xcc]
mov ecx, 0x800000
cmp eax, 2
mov dword [edi + 0x34], eax
mov edx, ebx
lea eax, [ebp - 0x74]
cmove edx, ecx
cmp dword [ebp - 0x78], 8
push edx
push ebx
push ebx
lea ecx, [ebp - 0x8c]
cmovae ecx, dword [ebp - 0x8c]
cmp dword [ebp - 0x60], 8
push ebx
cmovae eax, dword [ebp - 0x74]
push ecx
push eax
push dword [edi + 0xcc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
xor ebx, ebx
mov dword [edi + 0xc8], eax
test eax, eax
lea ecx, [ebp - 0x8c]
setne bl
call fcn.004024d8
lea ecx, [ebp - 0x74]
call fcn.004024d8
lea ecx, [ebp - 0x44]
call fcn.004024d8
lea ecx, [ebp - 0x2c]
call fcn.004024d8
lea ecx, [ebp + 8]
call fcn.00401ece
lea ecx, [ebp + 0x10]
call fcn.00401ece
mov eax, ebx
call fcn.004c8130
ret 0x10