Function at 0x41f5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x7c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
call fcn.0041e7d0
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
lea eax, [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0041e850
test al, 1
jne 0x41f5ec
jmp 0x41f5ff
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0041e870
mov dword [ebp - 0x10], eax
jmp 0x41f819
mov ecx, dword [ebp - 0x50]
call fcn.0041e3f0
cmp eax, 0
je 0x41f656
mov ecx, dword [ebp - 0x50]
call fcn.0041e3f0
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
call fcn.0041e410
mov ecx, eax
mov eax, dword [ebp - 0x54]
cmp eax, ecx
jae 0x41f656
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0041e8c0
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 0x55], al
call fcn.0041e8d0
mov cl, byte [ebp - 0x55]
mov byte [eax], cl
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jmp 0x41f819
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x4c], 0
jne 0x41f670
call fcn.0041e7d0
mov dword [ebp - 0x10], eax
jmp 0x41f819
mov ecx, dword [ebp - 0x50]
call fcn.0041f420
mov eax, dword [ebp - 0x50]
cmp dword [eax + 0x38], 0
jne 0x41f6d8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0041e8c0
mov cl, al
mov eax, dword [ebp - 0x5c]
movsx ecx, cl
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004209a0
test al, 1
jne 0x41f6ba
jmp 0x41f6c5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
jmp 0x41f6cd
call fcn.0041e7d0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x10], eax
jmp 0x41f819
mov dword [ebp - 0x1c], 0x20
mov eax, esp
lea ecx, [ebp + 8]
mov dword [eax], ecx
call fcn.0041e8c0
mov edx, dword [ebp - 0x50]
mov byte [ebp - 0x3d], al
mov ecx, dword [edx + 0x38]
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x3c]
add edx, 0x40
mov eax, esp
lea ebx, [ebp - 0x48]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], edi
lea edi, [ebp - 0x3c]
mov dword [eax + 0x10], edi
lea edi, [ebp - 0x44]
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
lea esi, [ebp - 0x3d]
mov dword [eax + 4], esi
mov dword [eax], edx
call fcn.004209d0
sub esp, 0x1c
mov ecx, eax
mov dword [ebp - 0x64], ecx
sub eax, 2
jb 0x41f74b
jmp 0x41f73a
mov eax, dword [ebp - 0x64]
sub eax, 3
je 0x41f7d0
jmp 0x41f811
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x3c]
sub eax, ecx
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp eax, dword [ebp - 0x4c]
jae 0x41f7a5
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x68], ecx
mov eax, dword [eax + 0x4c]
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x3c]
mov dword [esp], edx
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00454a59
mov ecx, eax
mov eax, dword [ebp - 0x68]
cmp eax, ecx
je 0x41f7a5
call fcn.0041e7d0
mov dword [ebp - 0x10], eax
jmp 0x41f819
mov eax, dword [ebp - 0x50]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x3d]
cmp dword [ebp - 0x44], eax
je 0x41f7c3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jmp 0x41f819
call fcn.0041e7d0
mov dword [ebp - 0x10], eax
jmp 0x41f819
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x4c]
movsx ecx, byte [ebp - 0x3d]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004209a0
test al, 1
jne 0x41f7f3
jmp 0x41f7fe
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
jmp 0x41f806
call fcn.0041e7d0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x10], eax
jmp 0x41f819
call fcn.0041e7d0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret 4