Function at 0x41c620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x573510]
xor eax, esp
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x3c], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x41c8fa
cmp byte [ecx + 0x41], 0
je 0x41c8fa
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x41c8dd
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x24], 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], 8
cmp ecx, 0x10
jae 0x41c68a
lea eax, [esp + 0x24]
mov byte [eax + 8], 0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
cmp edx, 0x10
jb 0x41c7a9
mov ebx, eax
mov dword [esp + 0x10], ebx
test eax, eax
je 0x41c6cd
mov ecx, eax
cmp edx, 0x10
jae 0x41c6b4
lea ecx, [esp + 0x24]
cmp ecx, ebx
ja 0x41c6cd
mov ecx, eax
cmp edx, 0x10
jae 0x41c6c3
lea ecx, [esp + 0x24]
mov esi, dword [esp + 0x34]
add ecx, esi
cmp ebx, ecx
jbe 0x41c6da
call fcn.004560b9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
cmp ecx, 0xfffffffc
je 0x41c705
mov ecx, eax
cmp edx, 0x10
jae 0x41c6ee
lea ecx, [esp + 0x24]
mov esi, dword [esp + 0x34]
add ecx, esi
cmp ebx, ecx
jb 0x41c705
call fcn.004560b9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
cmp edx, 0x10
jb 0x41c7b6
mov esi, eax
test eax, eax
je 0x41c740
mov ecx, eax
cmp edx, 0x10
jae 0x41c723
lea ecx, [esp + 0x24]
cmp ecx, esi
ja 0x41c740
mov ecx, eax
cmp edx, 0x10
jae 0x41c732
lea ecx, [esp + 0x24]
mov ebx, dword [esp + 0x34]
add ecx, ebx
mov ebx, dword [esp + 0x10]
cmp esi, ecx
jbe 0x41c74d
call fcn.004560b9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
cmp ecx, 0xfffffffc
je 0x41c76e
cmp edx, 0x10
jae 0x41c75f
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x34]
add eax, edx
cmp esi, eax
jb 0x41c76e
call fcn.004560b9
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
add ebx, edi
push ebx
mov ebx, dword [esp + 0x14]
push esi
lea eax, [ebx + 0x44]
push eax
call edx
sub eax, 0
je 0x41c7bf
sub eax, 1
je 0x41c7c3
sub eax, 2
lea ecx, [esp + 0x20]
jne 0x41c8d8
jmp 0x41c8f5
lea ebx, [esp + 0x24]
mov dword [esp + 0x10], ebx
jmp 0x41c6a9
lea esi, [esp + 0x24]
jmp 0x41c718
mov byte [ebx + 0x41], 0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
cmp edx, 0x10
jb 0x41c877
mov esi, eax
test eax, eax
je 0x41c7fe
mov ecx, eax
cmp edx, 0x10
jae 0x41c7e5
lea ecx, [esp + 0x24]
cmp ecx, esi
ja 0x41c7fe
mov ecx, eax
cmp edx, 0x10
jae 0x41c7f4
lea ecx, [esp + 0x24]
mov edi, dword [esp + 0x34]
add ecx, edi
cmp esi, ecx
jbe 0x41c80b
call fcn.004560b9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
cmp ecx, 0xfffffffc
je 0x41c836
mov ecx, eax
cmp edx, 0x10
jae 0x41c81f
lea ecx, [esp + 0x24]
mov edi, dword [esp + 0x34]
add ecx, edi
cmp esi, ecx
jb 0x41c836
call fcn.004560b9
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
sub edi, esi
je 0x41c8b5
cmp edx, 0x10
jae 0x41c847
lea eax, [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.00402f10
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
cmp esi, 0xfffffffc
je 0x41c891
test esi, esi
jne 0x41c86c
call fcn.004560b9
cmp dword [esi + 0x18], 0x10
jb 0x41c880
mov eax, dword [esi + 4]
jmp 0x41c883
lea esi, [esp + 0x24]
jmp 0x41c7da
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp ebx, ecx
jb 0x41c891
call fcn.004560b9
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push ebx
call fcn.0045b84e
add esp, 0x10
cmp edi, eax
jne 0x41c8d4
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0xc]
cmp byte [ebx + 0x41], 0
je 0x41c8f1
test edi, edi
jne 0x41c696
push edi
push 8
lea ecx, [esp + 0x28]
call fcn.00403270
jmp 0x41c68e
lea ecx, [esp + 0x20]
call fcn.00401e40
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0045633d
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.00401e40
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0045633d
mov esp, ebp
pop ebp
ret