Function at 0x407881
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [0x61c31c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x61c318]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
add edx, 4
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0044a444
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4078ff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 4
mov dword [esp], eax
call fcn.00431daa
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Unable_to_fetch__s__will_not_be_able_to_update_server_info_refs_n
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [0x61c318]
mov dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00407fb0
jmp 0x407a8d
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00446b6e
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
add eax, 0x5d
mov dword [esp], eax
call fcn.00431d88
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Fetching_pack__s_n
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 4
mov dword [esp], eax
call fcn.00431daa
mov ebx, eax
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], str._which_contains__s_n
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov eax, dword [0x61c318]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
add edx, 0x5d
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0040603a
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4079ed
mov eax, dword [0x61c318]
mov dword [eax + 0x10], 0
jmp 0x407a8d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
cmp eax, 2
jne 0x4079e1
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x4079e1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00405ea9
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00407fb0
jmp 0x407a8d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x13c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4079a0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov dword [eax + 0x1c], 0x4076aa
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x138], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x134], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], 2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call fcn.004043fd
test eax, eax
jne 0x407a8d
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 1
mov dword [esp], str.Unable_to_start_GET_request_n
call sub.cygwin1.dll_fwrite
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00405ea9
mov eax, dword [0x61c318]
mov dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00407fb0
mov ebx, dword [ebp - 4]
leave
ret