Function at 0x42adca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, 1
cmp dword [0x47b670], 0
je 0x42ae0c
mov eax, dword [0x44d09c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x47b670]
mov dword [esp], eax
call fcn.00430eac
mov edx, 0xffffffff
test eax, eax
js 0x42b067
mov dword [ebp - 0x3c], 0x800
mov esi, 0x800
cmp dword [0x44d040], 1
jle 0x42ae49
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x19
mov dword [esp + 4], 1
mov dword [esp], 0x42ad6b
call sub.cygwin1.dll_fwrite
mov dword [esp + 8], 0x1b
mov eax, dword [0x46a174]
test eax, eax
jne 0x42ae5f
mov eax, dword [0x44d054]
mov dword [esp + 4], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sub.cygwin1.dll_strncpy
mov byte [ebp - 0x1d], 0
mov eax, dword [0x46a018]
mov ebx, eax
sub ebx, dword [0x46a01c]
shl ebx, 2
cmp ebx, 0x63f
jg 0x42ae9b
mov eax, 0x640
sub eax, ebx
mov dword [esp], eax
call fcn.00412bd5
add ebx, eax
test edi, edi
je 0x42af02
mov dword [esp], ebx
call fcn.0042abd7
mov edx, dword [0x47c2a0]
mov dword [edx + 0x2c], eax
mov dword [esp], ebx
call fcn.0042ac76
mov ebx, eax
mov dword [esp], eax
call fcn.0042abc0
mov esi, eax
cmp eax, dword [ebp - 0x3c]
jne 0x42aed0
mov edi, 0
jmp 0x42aefe
mov dword [esp], eax
call fcn.00412839
mov ebx, eax
test eax, eax
js 0x42b046
mov eax, dword [ebp + 0xc]
sub eax, dword [0x46a01c]
lea eax, [esi + eax*4 - 1]
mov edx, 0
div esi
imul eax, esi
add ebx, eax
mov dword [ebp - 0x3c], esi
test edi, edi
jne 0x42ae9f
mov eax, dword [0x47c2a0]
sub ebx, dword [eax + 0x10]
mov dword [eax + 0x14], ebx
mov eax, dword [0x47c2a0]
mov dword [eax + 0x28], esi
lea ebx, [ebp - 0x38]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [0x47c2a0]
mov dword [esp], eax
call fcn.0043125b
test eax, eax
jns 0x42af43
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x42ad85
jmp 0x42afab
cmp esi, 0x800
je 0x42af79
mov eax, dword [0x47c2a0]
mov edx, dword [eax + 4]
add edx, dword [eax + 0x10]
mov dword [esp + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00412907
mov dword [0x46a018], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412a82
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [0x47c2a0]
mov dword [esp], eax
call fcn.00430c01
mov ebx, eax
test eax, eax
jne 0x42afc0
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x42ad99
mov eax, dword [0x47c2a0]
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call fcn.00448be1
jmp 0x42b05e
mov dword [0x47b670], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0042b193
mov edx, eax
test eax, eax
js 0x42b067
cmp dword [0x44d08c], 0
je 0x42b001
mov eax, dword [0x46a018]
sub eax, dword [0x46a01c]
shl eax, 2
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0042b8f6
mov edx, eax
test eax, eax
js 0x42b067
mov dword [esp], ebx
call fcn.00430e21
mov edx, 0xffffffff
test eax, eax
js 0x42b067
mov eax, dword [0x44d09c]
mov dword [esp + 8], eax
mov eax, dword [0x46a018]
sub eax, dword [0x46a01c]
shl eax, 2
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00430eac
mov edx, 0xffffffff
test eax, eax
js 0x42b067
jmp 0x42b065
mov dword [esp + 4], 0x42adac
mov eax, dword [0x47c2a0]
mov eax, dword [eax + 0x38]
mov dword [esp], eax
call fcn.00448be1
mov edx, 0xffffffff
jmp 0x42b067
mov edx, esi
mov eax, edx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret