Function at 0x1001a1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bfe8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10086e84]
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
cmp dword [ecx + 0x3c], 0
mov dword [ebp - 0x30], ecx
je 0x1001a47d
cmp byte [ecx + 0x41], 0
je 0x1001a47d
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x1001a471
mov ecx, 0xf
xor eax, eax
cmp ecx, 0x10
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 8
jae 0x1001a227
lea eax, [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
jmp 0x1001a240
cmp edx, 0x10
jb 0x1001a33a
test eax, eax
mov ebx, eax
mov dword [ebp - 0x34], ebx
je 0x1001a273
cmp edx, 0x10
mov ecx, eax
jae 0x1001a25c
lea ecx, [ebp - 0x28]
cmp ecx, ebx
ja 0x1001a273
cmp edx, 0x10
mov ecx, eax
jae 0x1001a26a
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
add ecx, esi
cmp ebx, ecx
jbe 0x1001a27e
call fcn.10042ded
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffe
je 0x1001a2a4
cmp edx, 0x10
mov ecx, eax
jae 0x1001a290
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
add ecx, esi
cmp ebx, ecx
jb 0x1001a2a4
call fcn.10042ded
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov edi, dword [ebp - 0x18]
jb 0x1001a345
test eax, eax
mov esi, eax
je 0x1001a2da
cmp edx, 0x10
mov ecx, eax
jae 0x1001a2c0
lea ecx, [ebp - 0x28]
cmp ecx, esi
ja 0x1001a2da
cmp edx, 0x10
mov ecx, eax
jae 0x1001a2ce
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
add ecx, ebx
cmp esi, ecx
mov ebx, dword [ebp - 0x34]
jbe 0x1001a2e5
call fcn.10042ded
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffe
je 0x1001a303
cmp edx, 0x10
jae 0x1001a2f5
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add eax, edx
cmp esi, eax
jb 0x1001a303
call fcn.10042ded
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
add ebx, edi
push ebx
push esi
add eax, 0x44
push eax
call edx
sub eax, 0
je 0x1001a34d
sub eax, 1
je 0x1001a354
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x1001a46c
jmp 0x1001a478
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x34], ebx
jmp 0x1001a252
lea esi, [ebp - 0x28]
jmp 0x1001a2b6
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x41], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
mov eax, dword [ebp - 0x28]
jb 0x1001a459
test eax, eax
mov esi, eax
je 0x1001a38a
cmp edx, 0x10
mov ecx, eax
jae 0x1001a373
lea ecx, [ebp - 0x28]
cmp ecx, esi
ja 0x1001a38a
cmp edx, 0x10
mov ecx, eax
jae 0x1001a381
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add ecx, edi
cmp esi, ecx
jbe 0x1001a395
call fcn.10042ded
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffe
je 0x1001a3bb
cmp edx, 0x10
mov ecx, eax
jae 0x1001a3a7
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
add ecx, edi
cmp esi, ecx
jb 0x1001a3bb
call fcn.10042ded
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x38]
sub edi, esi
je 0x1001a438
cmp edx, 0x10
jb 0x1001a461
test eax, eax
mov esi, eax
je 0x1001a3f2
cmp edx, 0x10
mov ecx, eax
jae 0x1001a3db
lea ecx, [ebp - 0x28]
cmp ecx, esi
ja 0x1001a3f2
cmp edx, 0x10
mov ecx, eax
jae 0x1001a3e9
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
add ecx, ebx
cmp esi, ecx
jbe 0x1001a3fd
call fcn.10042ded
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmp ecx, 0xfffffffe
je 0x1001a41b
cmp edx, 0x10
jae 0x1001a40d
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add eax, edx
cmp esi, eax
jb 0x1001a41b
call fcn.10042ded
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
push edi
push 1
push esi
call fcn.1004591d
add esp, 0x10
cmp edi, eax
jne 0x1001a469
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
cmp byte [ecx + 0x41], 0
je 0x1001a475
test edi, edi
jne 0x1001a240
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10019b10
jmp 0x1001a232
lea esi, [ebp - 0x28]
jmp 0x1001a369
lea esi, [ebp - 0x28]
jmp 0x1001a3d1
lea ecx, [ebp - 0x2c]
call fcn.100082ef
xor al, al
jmp 0x1001a47f
lea ecx, [ebp - 0x2c]
call fcn.100082ef
mov al, 1
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.10041ffa
mov esp, ebp
pop ebp
ret