Function at 0x413160
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x4c
mov eax, dword [eax]
mov dword [esp + 0x34], edx
mov dword [esp], eax
mov dword [esp + 0x3c], ecx
call sub.cygwin1.dll_strlen
mov ebx, eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
lea edi, [ebx + eax + 0xc]
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x4131d1
mov ebp, dword [esi + 8]
lea eax, [eax + eax*2]
mov dword [esp + 0x2c], esi
lea eax, [ebp + eax*4]
mov ebx, eax
lea esi, [esi]
nop
mov eax, dword [ebp]
add ebp, 0xc
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov esi, eax
mov eax, dword [ebp - 8]
lea edi, [edi + esi + 4]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
add edi, eax
cmp ebx, ebp
jne 0x4131a8
mov esi, dword [esp + 0x2c]
lea eax, [edi + 3]
mov dword [esp], eax
call fcn.00447900
mov ebp, dword [esi]
mov dword [esp + 0x30], eax
mov dword [esp], ebp
call sub.cygwin1.dll_strlen
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 8], eax
mov ebx, eax
mov dword [esp], ebp
call sub.cygwin1.dll_memcpy
mov edx, dword [esi + 4]
mov eax, ebp
add eax, ebx
mov byte [eax], 0x20
lea ebx, [eax + 1]
mov dword [esp], edx
mov dword [esp + 0x2c], edx
call sub.cygwin1.dll_strlen
mov edx, dword [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov ebp, eax
mov dword [esp + 4], edx
add ebx, ebp
mov ebp, 0xa0d
add ebx, 0xb
call sub.cygwin1.dll_memcpy
mov eax, dword [esi + 0xc]
mov byte [ebx - 0xb], 0x20
mov dword [ebx - 0xa], 0x50545448
mov dword [ebx - 6], 0x312e312f
mov word [ebx - 2], bp
test eax, eax
jle 0x4132d1
mov ebp, dword [esi + 8]
lea eax, [eax + eax*2]
mov dword [esp + 0x38], edi
lea eax, [ebp + eax*4]
mov edi, ebp
mov dword [esp + 0x2c], eax
lea esi, [esi]
mov ebp, dword [edi]
add edi, 0xc
mov dword [esp], ebp
call sub.cygwin1.dll_strlen
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov esi, eax
mov dword [esp + 8], eax
add esi, ebx
lea ebx, [esi + 2]
call sub.cygwin1.dll_memcpy
mov edx, 0x203a
mov word [esi], dx
mov ebp, dword [edi - 8]
mov dword [esp], ebp
call sub.cygwin1.dll_strlen
mov dword [esp], ebx
mov dword [esp + 8], eax
mov esi, eax
mov dword [esp + 4], ebp
call sub.cygwin1.dll_memcpy
lea eax, [ebx + esi]
mov ecx, 0xa0d
mov word [eax], cx
lea ebx, [eax + 2]
cmp dword [esp + 0x2c], edi
jne 0x413270
mov edi, dword [esp + 0x38]
mov eax, 0xa0d
mov byte [ebx + 2], 0
fld1
add edi, 2
mov word [ebx], ax
mov eax, dword [esp + 0x30]
fchs
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
fstp qword [esp + 0xc]
mov dword [esp], eax
call fcn.004019e0
mov ebx, eax
test eax, eax
js 0x413350
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x413334
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.cygwin1.dll_fwrite
cmp edi, eax
mov eax, 0xfffffffe
cmovne ebx, eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004376c0
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.00401ae0
mov dword [esp], str.Failed_writing_HTTP_request:__s._n
mov esi, eax
call sub.cygintl_8.dll_libintl_gettext
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.0041d940
jmp 0x413334