Function at 0x41a610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4613c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x47a4a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, 0xffff
mov edx, ecx
mov dword [ebp - 0x30], edx
cmp ax, si
jne 0x41a654
xor eax, eax
jmp 0x41a976
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x41a682
mov eax, dword [edx + 0x34]
mov ebx, dword [eax]
lea ebx, [ecx + ebx*2]
cmp ecx, ebx
jae 0x41a682
dec dword [eax]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax]
lea edx, [ecx + 2]
mov dword [eax], edx
mov word [ecx], si
mov ax, si
jmp 0x41a976
mov eax, dword [edx + 0x4c]
cmp eax, edi
je 0x41a971
cmp dword [edx + 0x3c], edi
jne 0x41a6a9
push eax
push esi
call fcn.00419540
test al, al
movzx eax, si
jne 0x41a976
jmp 0x41a971
movzx eax, si
mov ecx, 0xf
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], eax
xor eax, eax
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 8
cmp ecx, 0x10
jae 0x41a6d5
lea eax, [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x41a8f4
mov ebx, eax
mov dword [ebp - 0x38], ebx
test eax, eax
je 0x41a715
mov ecx, eax
cmp edx, 0x10
jae 0x41a6fe
lea ecx, [ebp - 0x28]
cmp ecx, ebx
ja 0x41a715
mov ecx, eax
cmp edx, 0x10
jae 0x41a70c
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
add ecx, esi
cmp ebx, ecx
jbe 0x41a720
call fcn.0044019c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffc
je 0x41a746
mov ecx, eax
cmp edx, 0x10
jae 0x41a732
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
add ecx, esi
cmp ebx, ecx
jb 0x41a746
call fcn.0044019c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x41a8ff
mov esi, eax
test eax, eax
je 0x41a77c
mov ecx, eax
cmp edx, 0x10
jae 0x41a762
lea ecx, [ebp - 0x28]
cmp ecx, esi
ja 0x41a77c
mov ecx, eax
cmp edx, 0x10
jae 0x41a770
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
add ecx, ebx
mov ebx, dword [ebp - 0x38]
cmp esi, ecx
jbe 0x41a787
call fcn.0044019c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffc
je 0x41a7a5
cmp edx, 0x10
jae 0x41a797
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add eax, edx
cmp esi, eax
jb 0x41a7a5
call fcn.0044019c
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x40]
push eax
add ebx, edi
push ebx
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x32]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
add eax, 0x44
push eax
call edx
test eax, eax
jl 0x41a962
cmp eax, 1
jg 0x41a917
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x41a907
mov esi, eax
test eax, eax
je 0x41a814
mov ecx, eax
cmp edx, 0x10
jae 0x41a7fd
lea ecx, [ebp - 0x28]
cmp ecx, esi
ja 0x41a814
mov ecx, eax
cmp edx, 0x10
jae 0x41a80b
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add ecx, edi
cmp esi, ecx
jbe 0x41a81f
call fcn.0044019c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffc
je 0x41a845
mov ecx, eax
cmp edx, 0x10
jae 0x41a831
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add ecx, edi
cmp esi, ecx
jb 0x41a845
call fcn.0044019c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x40]
sub edi, esi
je 0x41a8c6
cmp edx, 0x10
jb 0x41a90f
mov esi, eax
test eax, eax
je 0x41a87c
mov ecx, eax
cmp edx, 0x10
jae 0x41a865
lea ecx, [ebp - 0x28]
cmp ecx, esi
ja 0x41a87c
mov ecx, eax
cmp edx, 0x10
jae 0x41a873
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
add ecx, ebx
cmp esi, ecx
jbe 0x41a887
call fcn.0044019c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffc
je 0x41a8a5
cmp edx, 0x10
jae 0x41a897
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add eax, edx
cmp esi, eax
jb 0x41a8a5
call fcn.0044019c
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.00442823
add esp, 0x10
cmp edi, eax
jne 0x41a962
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x42], 1
lea ecx, [ebp - 0x34]
cmp dword [ebp - 0x3c], ecx
jne 0x41a94d
test edi, edi
ja 0x41a6e2
cmp dword [ebp - 0x18], 0x20
jae 0x41a962
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.00406f80
jmp 0x41a6dc
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x38], ebx
jmp 0x41a6f4
lea esi, [ebp - 0x28]
jmp 0x41a758
lea esi, [ebp - 0x28]
jmp 0x41a7f3
lea esi, [ebp - 0x28]
jmp 0x41a85b
cmp eax, 3
jne 0x41a962
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.00419540
movzx esi, word [ebp + 8]
test al, al
jne 0x41a939
mov esi, 0xffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405280
mov ax, si
jmp 0x41a976
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405280
mov ax, word [ebp + 8]
jmp 0x41a976
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405280
mov eax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440721
mov esp, ebp
pop ebp
ret 4