Function at 0x41c5c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x576510]
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 0x41c89a
cmp byte [ecx + 0x41], 0
je 0x41c89a
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x41c87d
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 0x41c62a
lea eax, [esp + 0x24]
mov byte [eax + 8], 0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
cmp edx, 0x10
jb 0x41c749
mov ebx, eax
mov dword [esp + 0x10], ebx
test eax, eax
je 0x41c66d
mov ecx, eax
cmp edx, 0x10
jae 0x41c654
lea ecx, [esp + 0x24]
cmp ecx, ebx
ja 0x41c66d
mov ecx, eax
cmp edx, 0x10
jae 0x41c663
lea ecx, [esp + 0x24]
mov esi, dword [esp + 0x34]
add ecx, esi
cmp ebx, ecx
jbe 0x41c67a
call fcn.00457319
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
cmp ecx, 0xfffffffc
je 0x41c6a5
mov ecx, eax
cmp edx, 0x10
jae 0x41c68e
lea ecx, [esp + 0x24]
mov esi, dword [esp + 0x34]
add ecx, esi
cmp ebx, ecx
jb 0x41c6a5
call fcn.00457319
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
cmp edx, 0x10
jb 0x41c756
mov esi, eax
test eax, eax
je 0x41c6e0
mov ecx, eax
cmp edx, 0x10
jae 0x41c6c3
lea ecx, [esp + 0x24]
cmp ecx, esi
ja 0x41c6e0
mov ecx, eax
cmp edx, 0x10
jae 0x41c6d2
lea ecx, [esp + 0x24]
mov ebx, dword [esp + 0x34]
add ecx, ebx
mov ebx, dword [esp + 0x10]
cmp esi, ecx
jbe 0x41c6ed
call fcn.00457319
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
cmp ecx, 0xfffffffc
je 0x41c70e
cmp edx, 0x10
jae 0x41c6ff
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x34]
add eax, edx
cmp esi, eax
jb 0x41c70e
call fcn.00457319
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 0x41c75f
sub eax, 1
je 0x41c763
sub eax, 2
lea ecx, [esp + 0x20]
jne 0x41c878
jmp 0x41c895
lea ebx, [esp + 0x24]
mov dword [esp + 0x10], ebx
jmp 0x41c649
lea esi, [esp + 0x24]
jmp 0x41c6b8
mov byte [ebx + 0x41], 0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
cmp edx, 0x10
jb 0x41c817
mov esi, eax
test eax, eax
je 0x41c79e
mov ecx, eax
cmp edx, 0x10
jae 0x41c785
lea ecx, [esp + 0x24]
cmp ecx, esi
ja 0x41c79e
mov ecx, eax
cmp edx, 0x10
jae 0x41c794
lea ecx, [esp + 0x24]
mov edi, dword [esp + 0x34]
add ecx, edi
cmp esi, ecx
jbe 0x41c7ab
call fcn.00457319
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
cmp ecx, 0xfffffffc
je 0x41c7d6
mov ecx, eax
cmp edx, 0x10
jae 0x41c7bf
lea ecx, [esp + 0x24]
mov edi, dword [esp + 0x34]
add ecx, edi
cmp esi, ecx
jb 0x41c7d6
call fcn.00457319
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
sub edi, esi
je 0x41c855
cmp edx, 0x10
jae 0x41c7e7
lea eax, [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.00402e60
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
cmp esi, 0xfffffffc
je 0x41c831
test esi, esi
jne 0x41c80c
call fcn.00457319
cmp dword [esi + 0x18], 0x10
jb 0x41c820
mov eax, dword [esi + 4]
jmp 0x41c823
lea esi, [esp + 0x24]
jmp 0x41c77a
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp ebx, ecx
jb 0x41c831
call fcn.00457319
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x4c]
push eax
push edi
push 1
push ebx
call fcn.0045cb86
add esp, 0x10
cmp edi, eax
jne 0x41c874
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0xc]
cmp byte [ebx + 0x41], 0
je 0x41c891
test edi, edi
jne 0x41c636
push edi
push 8
lea ecx, [esp + 0x28]
call fcn.004031c0
jmp 0x41c62e
lea ecx, [esp + 0x20]
call fcn.00401d50
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0045759d
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.00401d50
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0045759d
mov esp, ebp
pop ebp
ret