Function at 0x403a40
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eca5
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor bl, bl
cmp dword [edi], 0
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x41], bl
je 0x403ca5
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x3c
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0xffffffff
push 0
push 0
push ecx
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x7c], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x58], 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x403c8d
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00403cd0
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403db0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 0
je 0x403c07
cmp dword [ebp - 0x18], 0
je 0x403c07
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
push 0
push dword [ebp - 0x70]
cmova eax, dword [ebp - 0x40]
push eax
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x403bef
xor edx, edx
mov ecx, 0x800000
cmp dword [ebp - 0x7c], 2
cmove edx, ecx
cmp dword [ebp - 0x14], 7
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
cmova ecx, dword [ebp - 0x28]
push ecx
push 0x449104
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, eax
test edi, edi
je 0x403bcd
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x48]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x403ba8
push esi
push edi
call fcn.00403e90
push edi
mov byte [ebp - 0x41], al
call ebx
push dword [ebp - 0x4c]
call ebx
mov bl, byte [ebp - 0x41]
jmp 0x403c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x12
push 0x44910c
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], eax
call fcn.004045b0
push edi
call ebx
push dword [ebp - 0x4c]
call ebx
mov bl, byte [ebp - 0x41]
jmp 0x403c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x12
push 0x449120
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], eax
call fcn.004045b0
push dword [ebp - 0x4c]
call ebx
mov bl, byte [ebp - 0x41]
jmp 0x403c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xe
push 0x449134
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], eax
call fcn.004045b0
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x403c41
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403c37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cc5
push ecx
push edx
call fcn.0041cdc8
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x403ca5
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403c81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403cc5
push ecx
push edx
call fcn.0041cdc8
add esp, 8
jmp 0x403ca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf
push 0x449144
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], eax
call fcn.004045b0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041cb34
mov esp, ebp
pop ebp
ret 0xc
call fcn.004217fa
int3