Function at 0x4041c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54f978
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x28
call fcn.00525ec0
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
push edi
mov dword [esp + 0x14], ebx
cmp dword [ebx + 0x3c], esi
je 0x4044dc
cmp byte [ebx + 0x41], 0
je 0x4044dc
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40436f
mov eax, 0xf
mov dword [esp + 0x34], eax
mov byte [esp + 0x20], 0
pxor xmm0, xmm0
mov dword [esp + 0x30], esi
movq qword [esp + 0x20], xmm0
cmp eax, 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], 8
jae 0x404248
lea eax, [esp + 0x20]
mov byte [eax + 8], 0
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
jmp 0x404260
cmp edx, 0x10
jb 0x404384
mov ebp, eax
test eax, eax
je 0x404293
mov ecx, eax
cmp edx, 0x10
jae 0x40427a
lea ecx, [esp + 0x20]
cmp ecx, ebp
ja 0x404293
mov ecx, eax
cmp edx, 0x10
jae 0x404289
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x30]
add ecx, esi
cmp ebp, ecx
jbe 0x4042a0
call fcn.0050dd58
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
cmp ecx, 0xfffffffc
je 0x4042cb
mov ecx, eax
cmp edx, 0x10
jae 0x4042b4
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x30]
add ecx, esi
cmp ebp, ecx
jb 0x4042cb
call fcn.0050dd58
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
cmp edx, 0x10
jb 0x40438d
mov esi, eax
test eax, eax
je 0x404306
mov ecx, eax
cmp edx, 0x10
jae 0x4042e9
lea ecx, [esp + 0x20]
cmp ecx, esi
ja 0x404306
mov ecx, eax
cmp edx, 0x10
jae 0x4042f8
lea ecx, [esp + 0x20]
mov ebx, dword [esp + 0x30]
add ecx, ebx
mov ebx, dword [esp + 0x14]
cmp esi, ecx
jbe 0x404313
call fcn.0050dd58
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
cmp ecx, 0xfffffffc
je 0x404334
cmp edx, 0x10
jae 0x404325
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
add eax, edx
cmp esi, eax
jb 0x404334
call fcn.0050dd58
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
add ebp, edi
push ebp
push esi
lea eax, [ebx + 0x44]
push eax
call edx
sub eax, 0
je 0x404396
sub eax, 1
je 0x40439a
sub eax, 2
je 0x4044cb
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041ac40
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ebp, [esp + 0x20]
jmp 0x40426f
lea esi, [esp + 0x20]
jmp 0x4042de
mov byte [ebx + 0x41], 0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp edx, 0x10
jb 0x4044b9
mov esi, eax
test eax, eax
je 0x4043d5
mov ecx, eax
cmp edx, 0x10
jae 0x4043bc
lea ecx, [esp + 0x20]
cmp ecx, esi
ja 0x4043d5
mov ecx, eax
cmp edx, 0x10
jae 0x4043cb
lea ecx, [esp + 0x20]
mov edi, dword [esp + 0x30]
add ecx, edi
cmp esi, ecx
jbe 0x4043e2
call fcn.0050dd58
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
cmp ecx, 0xfffffffc
je 0x40440d
mov ecx, eax
cmp edx, 0x10
jae 0x4043f6
lea ecx, [esp + 0x20]
mov edi, dword [esp + 0x30]
add ecx, edi
cmp esi, ecx
jb 0x40440d
call fcn.0050dd58
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
sub edi, esi
je 0x40449a
cmp edx, 0x10
jb 0x4044c2
mov esi, eax
test eax, eax
je 0x40444c
mov ecx, eax
cmp edx, 0x10
jae 0x404433
lea ecx, [esp + 0x20]
cmp ecx, esi
ja 0x40444c
mov ecx, eax
cmp edx, 0x10
jae 0x404442
lea ecx, [esp + 0x20]
mov ebp, dword [esp + 0x30]
add ecx, ebp
cmp esi, ecx
jbe 0x404459
call fcn.0050dd58
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
cmp ecx, 0xfffffffc
je 0x40447a
cmp edx, 0x10
jae 0x40446b
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
add eax, edx
cmp esi, eax
jb 0x40447a
call fcn.0050dd58
mov eax, dword [ebx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.0050deca
add esp, 0x10
cmp edi, eax
jne 0x40435e
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
cmp byte [ebx + 0x41], 0
je 0x4044cb
test edi, edi
jne 0x404260
push edi
push 8
lea ecx, [esp + 0x24]
call fcn.00419e10
jmp 0x404250
lea esi, [esp + 0x20]
jmp 0x4043b1
lea esi, [esp + 0x20]
jmp 0x404428
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0041ac40
mov ecx, dword [esp + 0x3c]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret