Function at 0x41a5f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x441378]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [esp + 4], ebx
je 0x41a8f7
cmp byte [ebx + 0x41], 0
je 0x41a8f7
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x41a639
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041bf39
add esp, 0x28
ret
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x10], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 8
cmp ecx, 0x10
jae 0x41a662
lea eax, [esp + 0x10]
push ebp
push esi
mov byte [eax + 8], 0
push edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
cmp edx, 0x10
jb 0x41a78d
mov ebp, eax
test eax, eax
je 0x41a6a4
mov ecx, eax
cmp edx, 0x10
jae 0x41a68b
lea ecx, [esp + 0x1c]
cmp ecx, ebp
ja 0x41a6a4
mov ecx, eax
cmp edx, 0x10
jae 0x41a69a
lea ecx, [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add ecx, esi
cmp ebp, ecx
jbe 0x41a6b1
call fcn.0041c23f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffc
je 0x41a6dc
mov ecx, eax
cmp edx, 0x10
jae 0x41a6c5
lea ecx, [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add ecx, esi
cmp ebp, ecx
jb 0x41a6dc
call fcn.0041c23f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
cmp edx, 0x10
jb 0x41a796
mov esi, eax
test eax, eax
je 0x41a717
mov ecx, eax
cmp edx, 0x10
jae 0x41a6fa
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x41a717
mov ecx, eax
cmp edx, 0x10
jae 0x41a709
lea ecx, [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
add ecx, ebx
mov ebx, dword [esp + 0x10]
cmp esi, ecx
jbe 0x41a724
call fcn.0041c23f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffc
je 0x41a745
cmp edx, 0x10
jae 0x41a736
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp esi, eax
jb 0x41a745
call fcn.0041c23f
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
add ebp, edi
push ebp
push esi
lea eax, [ebx + 0x44]
push eax
call edx
sub eax, 0
je 0x41a79f
sub eax, 1
je 0x41a7a3
sub eax, 2
lea ecx, [esp + 0x18]
je 0x41a8dd
call fcn.00406e50
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041bf39
add esp, 0x28
ret
lea ebp, [esp + 0x1c]
jmp 0x41a680
lea esi, [esp + 0x1c]
jmp 0x41a6ef
mov byte [ebx + 0x41], 0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cmp edx, 0x10
jb 0x41a8be
mov esi, eax
test eax, eax
je 0x41a7de
mov ecx, eax
cmp edx, 0x10
jae 0x41a7c5
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x41a7de
mov ecx, eax
cmp edx, 0x10
jae 0x41a7d4
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add ecx, edi
cmp esi, ecx
jbe 0x41a7eb
call fcn.0041c23f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffc
je 0x41a816
mov ecx, eax
cmp edx, 0x10
jae 0x41a7ff
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add ecx, edi
cmp esi, ecx
jb 0x41a816
call fcn.0041c23f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
sub edi, esi
je 0x41a89f
cmp edx, 0x10
jb 0x41a8c7
mov esi, eax
test eax, eax
je 0x41a855
mov ecx, eax
cmp edx, 0x10
jae 0x41a83c
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x41a855
mov ecx, eax
cmp edx, 0x10
jae 0x41a84b
lea ecx, [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
add ecx, ebp
cmp esi, ecx
jbe 0x41a862
call fcn.0041c23f
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffc
je 0x41a883
cmp edx, 0x10
jae 0x41a874
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp esi, eax
jb 0x41a883
call fcn.0041c23f
mov eax, dword [ebx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.0041fb5b
add esp, 0x10
cmp edi, eax
jne 0x41a8d0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cmp byte [ebx + 0x41], 0
je 0x41a8d9
test edi, edi
jne 0x41a671
push edi
push 8
lea ecx, [esp + 0x20]
call fcn.00404580
jmp 0x41a669
lea esi, [esp + 0x1c]
jmp 0x41a7ba
lea esi, [esp + 0x1c]
jmp 0x41a831
lea ecx, [esp + 0x18]
jmp 0x41a773
lea ecx, [esp + 0x18]
call fcn.00406e50
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041bf39
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
pop ebx
xor ecx, esp
mov al, 1
call fcn.0041bf39
add esp, 0x28
ret