Function at 0x409700
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454cd6
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x46d674]
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
push 0x38
lea eax, [ebp - 0x26c]
push 0
push eax
mov esi, ecx
call fcn.00446e60
mov edx, dword [esi]
mov edx, dword [edx + 8]
or eax, 0xffffffff
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x238], eax
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
mov ecx, esi
mov dword [ebp - 0x270], 0x3c
call edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x22c]
mov ebx, 8
cmp dword [ebp - 0x218], ebx
jae 0x409798
lea eax, [ebp - 0x22c]
mov edx, dword [ebp - 0x21c]
lea ecx, [ebp - 0x270]
push ecx
push 0
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x4097d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x218], ebx
jb 0x4097d0
mov eax, dword [ebp - 0x22c]
push eax
call fcn.0043e981
add esp, 4
xor al, al
jmp 0x40994f
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.00446e60
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x260]
push eax
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0043f4f8
add esp, 0x18
test byte [0x470168], 1
jne 0x409831
or dword [0x470168], 1
call fcn.00407c90
push 0x455380
call fcn.0043eea0
add esp, 4
mov eax, dword [ebp - 0x258]
mov edx, dword [0x47013c]
push 0
push eax
lea ecx, [ebp - 0x210]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 4], eax
test eax, eax
je 0x4097b3
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
xor ecx, ecx
cmp dword [ebp - 0x264], 2
setne cl
lea edi, [ecx - 1]
mov ecx, esi
and edi, 0x800000
call eax
test eax, eax
mov eax, 0x459d88
je 0x409885
mov eax, str.POST
mov ecx, dword [ebp - 0x244]
mov edx, dword [esi + 4]
push edi
push 0
push 0
push 0
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 8], eax
test eax, eax
je 0x4097b3
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
push ecx
push edx
mov edx, dword [esi + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
lea eax, [esi + 0x1c]
lea esi, [ebp - 0x234]
call fcn.00409ac0
mov esi, eax
mov byte [ebp - 4], 1
test byte [0x470168], 1
jne 0x4098f3
or dword [0x470168], 1
call fcn.00407c90
push 0x455380
call fcn.0043eea0
add esp, 4
mov eax, esi
mov ecx, 0x47013c
call fcn.00407f90
test al, al
mov eax, dword [ebp - 0x234]
sete bl
test eax, eax
je 0x409929
push 0xffffffffffffffff
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec eax
jne 0x409929
test esi, esi
je 0x409929
push esi
call fcn.0043e981
add esp, 4
test bl, bl
je 0x409942
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x22c]
call fcn.0040f280
xor al, al
jmp 0x40994f
lea esi, [ebp - 0x22c]
call fcn.0040f280
mov al, 1
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.0043e417
mov esp, ebp
pop ebp
ret