Function at 0x40ffa0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x771438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [esp + 4], ebx
je 0x4102b5
cmp byte [ebx + 0x41], 0
je 0x4102b5
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
jne 0x40fff3
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, 0xf
xor eax, eax
cmp ecx, 0x10
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
jae 0x41001c
lea eax, [esp + 0x10]
mov byte [eax + 8], 0
push ebp
push esi
mov dword [esp + 0x38], 0
push edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
cmp edx, 0x10
jb 0x41014f
test eax, eax
mov ebp, eax
je 0x410066
cmp edx, 0x10
mov ecx, eax
jae 0x41004d
lea ecx, [esp + 0x1c]
cmp ecx, ebp
ja 0x410066
cmp edx, 0x10
mov ecx, eax
jae 0x41005c
lea ecx, [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add ecx, esi
cmp ebp, ecx
jbe 0x410073
call fcn.0074ca9e
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x41009e
cmp edx, 0x10
mov ecx, eax
jae 0x410087
lea ecx, [esp + 0x1c]
mov esi, dword [esp + 0x2c]
add ecx, esi
cmp ebp, ecx
jb 0x41009e
call fcn.0074ca9e
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cmp edx, 0x10
mov edi, dword [esp + 0x2c]
jb 0x410158
test eax, eax
mov esi, eax
je 0x4100d9
cmp edx, 0x10
mov ecx, eax
jae 0x4100bc
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x4100d9
cmp edx, 0x10
mov ecx, eax
jae 0x4100cb
lea ecx, [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
add ecx, ebx
cmp esi, ecx
mov ebx, dword [esp + 0x10]
jbe 0x4100e6
call fcn.0074ca9e
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x410107
cmp edx, 0x10
jae 0x4100f8
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp esi, eax
jb 0x410107
call fcn.0074ca9e
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 0x410161
sub eax, 1
je 0x410165
sub eax, 2
lea ecx, [esp + 0x18]
je 0x41029b
call fcn.0045deb0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
lea ebp, [esp + 0x1c]
jmp 0x410042
lea esi, [esp + 0x1c]
jmp 0x4100b1
mov byte [ebx + 0x41], 0
mov edx, dword [esp + 0x30]
cmp edx, 0x10
mov eax, dword [esp + 0x1c]
jb 0x41027c
test eax, eax
mov esi, eax
je 0x4101a0
cmp edx, 0x10
mov ecx, eax
jae 0x410187
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x4101a0
cmp edx, 0x10
mov ecx, eax
jae 0x410196
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add ecx, edi
cmp esi, ecx
jbe 0x4101ad
call fcn.0074ca9e
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x4101d8
cmp edx, 0x10
mov ecx, eax
jae 0x4101c1
lea ecx, [esp + 0x1c]
mov edi, dword [esp + 0x2c]
add ecx, edi
cmp esi, ecx
jb 0x4101d8
call fcn.0074ca9e
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
sub edi, esi
je 0x41025d
cmp edx, 0x10
jb 0x410285
test eax, eax
mov esi, eax
je 0x410213
cmp edx, 0x10
mov ecx, eax
jae 0x4101fa
lea ecx, [esp + 0x1c]
cmp ecx, esi
ja 0x410213
cmp edx, 0x10
mov ecx, eax
jae 0x410209
lea ecx, [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
add ecx, ebp
cmp esi, ecx
jbe 0x410220
call fcn.0074ca9e
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
cmp ecx, 0xfffffffe
je 0x410241
cmp edx, 0x10
jae 0x410232
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
add eax, edx
cmp esi, eax
jb 0x410241
call fcn.0074ca9e
mov eax, dword [ebx + 0x4c]
push eax
push edi
push 1
push esi
call fcn.0074eca8
add esp, 0x10
cmp edi, eax
jne 0x41028e
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
cmp byte [ebx + 0x41], 0
je 0x410297
test edi, edi
jne 0x410033
push edi
push 8
lea ecx, [esp + 0x20]
call fcn.0040faa0
jmp 0x41002b
lea esi, [esp + 0x1c]
jmp 0x41017c
lea esi, [esp + 0x1c]
jmp 0x4101ef
lea ecx, [esp + 0x18]
jmp 0x410135
lea ecx, [esp + 0x18]
call fcn.0045deb0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret