Function at 0x41d870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441c40
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x453674]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
call fcn.004153cd
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041538d
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x41d8cc
lea eax, [ebp + 8]
push eax
call fcn.004153a1
pop ecx
jmp 0x41db43
mov ecx, dword [ebp - 0x6c]
call fcn.0041e7c4
test eax, eax
je 0x41d90e
mov ecx, dword [ebp - 0x6c]
call fcn.0041e7c4
mov esi, eax
mov ecx, dword [ebp - 0x6c]
call fcn.0041e81f
cmp esi, eax
jae 0x41d90e
lea eax, [ebp + 8]
push eax
call fcn.00415378
pop ecx
mov bl, al
mov ecx, dword [ebp - 0x6c]
call fcn.0041e937
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x41db43
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x54], 0
jne 0x41d921
call fcn.004153cd
jmp 0x41db43
mov ecx, dword [ebp - 0x6c]
call fcn.0041ed72
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 0x44], 0
jne 0x41d971
mov eax, dword [ebp - 0x6c]
push dword [eax + 0x54]
lea eax, [ebp + 8]
push eax
call fcn.00415378
pop ecx
movzx eax, al
push eax
call fcn.00415fe6
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x41d95c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
jmp 0x41d964
call fcn.004153cd
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
jmp 0x41db43
mov dword [ebp - 0x10], 8
lea eax, [ebp + 8]
push eax
call fcn.00415378
pop ecx
mov byte [ebp - 0x15], al
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0041e3c6
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00411dbc
mov ecx, eax
call fcn.0041f405
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00403de6
add esi, eax
push esi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00411dbc
mov ecx, eax
call fcn.0041f405
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x15]
push eax
mov eax, dword [ebp - 0x6c]
add eax, 0x4c
push eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x44]
call fcn.0041efad
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jl 0x41db19
cmp dword [ebp - 0x74], 1
jle 0x41da0d
cmp dword [ebp - 0x74], 3
je 0x41dadb
jmp 0x41db19
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00411dbc
mov ecx, eax
call fcn.0041f405
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x40], ecx
je 0x41da72
mov eax, dword [ebp - 0x6c]
push dword [eax + 0x54]
push dword [ebp - 0x40]
push 1
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00411dbc
mov ecx, eax
call fcn.0041f405
push eax
call fcn.0042fa1b
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x41da72
call fcn.004153cd
mov dword [ebp - 0x58], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403da2
mov eax, dword [ebp - 0x58]
jmp 0x41db43
mov eax, dword [ebp - 0x6c]
mov byte [eax + 0x49], 1
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x15]
cmp eax, ecx
je 0x41da9d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403da2
mov eax, dword [ebp - 0x5c]
jmp 0x41db43
cmp dword [ebp - 0x40], 0
jbe 0x41daa5
jmp 0x41dad9
lea ecx, [ebp - 0x3c]
call fcn.00403de6
cmp eax, 0x20
jae 0x41dac0
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.004128cf
jmp 0x41dad9
call fcn.004153cd
mov dword [ebp - 0x60], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403da2
mov eax, dword [ebp - 0x60]
jmp 0x41db43
jmp 0x41db32
mov eax, dword [ebp - 0x6c]
push dword [eax + 0x54]
push dword [ebp - 0x15]
call fcn.00415fe6
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x41dafa
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
jmp 0x41db02
call fcn.004153cd
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x64], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403da2
mov eax, dword [ebp - 0x64]
jmp 0x41db43
call fcn.004153cd
mov dword [ebp - 0x68], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403da2
mov eax, dword [ebp - 0x68]
jmp 0x41db43
jmp 0x41d995
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0042dfd1
leave
ret 4