Function at 0x41d42d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
cmp dword [ebp + 8], 0
je 0x41db3d
cmp dword [ebp + 0xc], 0
je 0x41db3d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [esp + 4], eax
mov eax, dword [0x46a010]
mov dword [esp], eax
call fcn.0040e8e3
mov dword [ebp - 0x5c], eax
test eax, eax
jne 0x41d486
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41d060
mov dword [esp], 0xffffffff
call fcn.004486d2
cld
mov ecx, 8
mov eax, 0
mov edi, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov ebx, dword [ebp + 0xc]
cmp byte [ebx + 8], 0
jne 0x41d4a3
mov al, 0x88
jmp 0x41d4a5
mov al, 0
mov esi, dword [ebp + 8]
mov byte [esi], al
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
mov dword [esp + 4], eax
mov eax, esi
add eax, 2
mov dword [esp], eax
call fcn.0040ea70
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x60], ecx
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x18], 0
jne 0x41d516
mov esi, dword [ebp - 0x5c]
mov eax, dword [esi + 0x100]
mov edx, dword [esi + 0x104]
test edx, edx
jns 0x41d4ee
add eax, 0x7ff
adc edx, 0
shrd eax, edx, 0xb
mov ecx, eax
shl ecx, 2
mov esi, dword [ebp - 0x5c]
mov eax, dword [esi + 0x100]
and eax, 0x7ff
mov edx, 0
mov esi, edx
or esi, eax
je 0x41d513
add ecx, 4
mov dword [ebp - 0x60], ecx
cmp dword [0x44d040], 0
jle 0x41d53e
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x60]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x41d0a0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x10], 0
je 0x41d7c1
mov ebx, dword [ebp + 8]
mov byte [ebx + 1], 4
cmp dword [0x44d040], 0
jle 0x41d583
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x16
mov dword [esp + 4], 1
mov dword [esp], 0x41d0c5
call sub.cygwin1.dll_fwrite
mov dword [esp + 4], 0x10000
mov esi, dword [ebp - 0x5c]
mov eax, dword [esi + 0x114]
mov dword [esp], eax
call sub.cygwin1.dll__open64
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41d5b9
mov eax, dword [esi + 0x114]
mov dword [esp + 4], eax
mov dword [esp], 0x41d0e0
call fcn.0044869f
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0x47aad0
mov dword [esp], ebx
call sub.cygwin1.dll_read
cmp eax, 0x200
je 0x41d5f1
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x114]
mov dword [esp + 4], eax
mov dword [esp], 0x41d120
call fcn.0044869f
mov dword [esp], ebx
call sub.cygwin1.dll_close
movzx dx, byte [0x47acce]
movzx eax, byte [0x47accf]
shl eax, 8
or edx, eax
cmp dx, 0xaa55
je 0x41d635
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x114]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41d160
mov dword [esp], 0xffffffff
call fcn.00448730
mov ebx, dword [ebp + 8]
mov byte [ebx + 4], 0
mov edi, 0
mov ecx, edi
shl ecx, 4
movzx eax, byte [ecx + 0x47ac91]
shl eax, 8
movzx edx, byte [ecx + 0x47ac90]
mov ebx, edx
or ebx, eax
movzx eax, byte [ecx + 0x47ac95]
shl eax, 8
movzx edx, byte [ecx + 0x47ac94]
mov esi, edx
or esi, eax
cmp byte [ecx + 0x47ac92], 0
je 0x41d790
mov eax, dword [ebp + 8]
cmp byte [eax + 4], 0
je 0x41d6a7
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x114]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41d1a0
mov dword [esp], 0xffffffff
call fcn.004486d2
mov edx, edi
shl edx, 4
movzx eax, byte [edx + 0x47ac92]
mov ecx, dword [ebp + 8]
mov byte [ecx + 4], al
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
jne 0x41d6f3
cmp byte [edx + 0x47ac8e], 0x80
je 0x41d6f3
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x26
mov dword [esp + 4], 1
mov dword [esp], 0x41d1e0
call sub.cygwin1.dll_fwrite
mov edx, ebx
sar edx, 8
lea eax, [ebx*4]
and eax, 0x300
or edx, eax
jne 0x41d71b
mov eax, edi
shl eax, 4
cmp byte [eax + 0x47ac8f], 1
jne 0x41d71b
cmp ebx, 1
je 0x41d743
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 1
mov dword [esp], 0x41d220
call sub.cygwin1.dll_fwrite
mov ebx, esi
sar ebx, 8
lea eax, [esi*4]
and eax, 0x300
or ebx, eax
inc ebx
mov eax, edi
shl eax, 4
movzx eax, byte [eax + 0x47ac93]
inc eax
imul ebx, eax
mov eax, esi
and eax, 0x3f
imul ebx, eax
cmp ebx, dword [ebp - 0x60]
je 0x41d790
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x41d260
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
inc edi
cmp edi, 3
jle 0x41d641
mov edx, dword [ebp + 8]
cmp byte [edx + 4], 0
jne 0x41d8f3
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x114]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41d2a0
jmp 0x41d8e7
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0xc], 0
je 0x41d80b
mov esi, dword [ebp + 8]
mov byte [esi + 1], 0
cmp dword [0x44d040], 0
jle 0x41d8fa
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xd
mov dword [esp + 4], 1
mov dword [esp], 0x41d2c4
call sub.cygwin1.dll_fwrite
jmp 0x41d8fa
cmp dword [ebp - 0x60], 0xb40
jne 0x41d84d
mov eax, dword [ebp + 8]
mov byte [eax + 1], 2
cmp dword [0x44d040], 0
jle 0x41d8f3
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], 0x41d2d2
jmp 0x41d8cb
cmp dword [ebp - 0x60], 0x1680
jne 0x41d88f
mov edx, dword [ebp + 8]
mov byte [edx + 1], 3
cmp dword [0x44d040], 0
jle 0x41d8f3
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], 0x41d2ee
jmp 0x41d8cb
cmp dword [ebp - 0x60], 0x960
jne 0x41d8d2
mov ecx, dword [ebp + 8]
mov byte [ecx + 1], 1
cmp dword [0x44d040], 0
jle 0x41d8f3
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], 0x41d30a
call sub.cygwin1.dll_fwrite
jmp 0x41d8f3
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebx + 0x114]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41d340
mov dword [esp], 0xffffffff
call fcn.004486d2
mov dword [ebp - 0x60], 1
mov esi, dword [ebp - 0x60]
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
add eax, 6
mov dword [esp], eax
call fcn.0040ea70
mov eax, dword [ebp - 0x5c]
add eax, 0xa
mov dword [esp], eax
call fcn.0040eb72
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 8
mov dword [esp], eax
call fcn.0040eab1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0
je 0x41db3d
mov dword [esp + 4], 0x10002
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x114]
mov dword [esp], eax
call sub.cygwin1.dll__open64
mov dword [ebp - 0x64], eax
cmp eax, 0xffffffff
jne 0x41d976
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x114]
mov dword [esp + 4], eax
mov dword [esp], 0x41d380
call fcn.0044869f
mov dword [ebp - 0x68], 0
mov esi, 0
jmp 0x41da35
test byte [ebp - 0x68], 3
je 0x41d9ae
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x114]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41d3c0
mov dword [esp], 0xffffffff
call fcn.004486d2
cmp dword [ebp - 0x68], 0x3f
ja 0x41d9e9
mov edi, 0x479ab0
mov eax, 0x40
sub eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov edx, 0
cld
mov ecx, eax
shr ecx, 2
mov eax, edx
rep stosd dword es:[edi], eax
test byte [ebp - 0x6c], 2
je 0x41d9e1
mov word [edi], 0
add edi, 2
test byte [ebp - 0x6c], 1
je 0x41d9e9
mov byte [edi], dl
cmp ebx, 0x7ff
jg 0x41da12
mov eax, 0x800
sub eax, ebx
lea edx, [ebx + 0x479ab0]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.cygwin1.dll_memset
mov edi, 0
lea eax, [edi + 0x479ab0]
mov dword [esp], eax
call fcn.0040eb26
add esi, eax
add edi, 4
cmp edi, 0x7ff
jle 0x41da17
add dword [ebp - 0x68], ebx
mov dword [esp + 8], 0x800
mov dword [esp + 4], 0x479ab0
mov edx, dword [ebp - 0x64]
mov dword [esp], edx
call sub.cygwin1.dll_read
mov ebx, eax
test eax, eax
jg 0x41d987
mov eax, dword [ebp - 0x68]
mov edx, 0
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebx + 0x104]
xor ecx, edx
xor eax, dword [ebx + 0x100]
or ecx, eax
je 0x41da95
mov eax, dword [ebx + 0x114]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41d400
mov dword [esp], 0xffffffff
call fcn.004486d2
mov dword [esp + 0xc], 0
mov dword [esp + 4], 8
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sub.cygwin1.dll__lseek64
lea edi, [ebp - 0x58]
cld
mov ecx, 0xe
mov eax, 0
rep stosd dword es:[edi], eax
mov eax, dword [0x46a01c]
add eax, 0x10
mov dword [esp + 4], eax
lea ebx, [ebp - 0x58]
mov dword [esp], ebx
call fcn.0040eab1
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0xfc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call fcn.0040eab1
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx + 0x100]
mov dword [esp + 4], eax
lea eax, [ebp - 0x50]
mov dword [esp], eax
call fcn.0040eab1
mov dword [esp + 4], esi
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0040eab1
mov dword [esp + 8], 0x38
mov dword [esp + 4], ebx
mov ebx, dword [ebp - 0x64]
mov dword [esp], ebx
call sub.cygwin1.dll_write
mov dword [esp], ebx
call sub.cygwin1.dll_close
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret