Function at 0x1001f120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad5b8
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x100d2948]
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 dword [ebp - 0x14], ecx
call fcn.1000ce60
mov dword [ebp - 0x84], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.1000cef0
add esp, 8
movzx edx, al
test edx, edx
je 0x1001f189
lea eax, [ebp + 8]
push eax
call fcn.1000d740
add esp, 4
jmp 0x1001f46c
mov ecx, dword [ebp - 0x14]
call fcn.1000dc90
test eax, eax
je 0x1001f1cd
mov ecx, dword [ebp - 0x14]
call fcn.1000dc90
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.1000ce80
cmp esi, eax
jae 0x1001f1cd
lea eax, [ebp + 8]
push eax
call fcn.1000e700
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x14]
call fcn.1000c500
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x1001f46c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x4c], 0
jne 0x1001f1e0
call fcn.1000ce60
jmp 0x1001f46c
mov ecx, dword [ebp - 0x14]
call fcn.1001c090
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
jne 0x1001f23d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.1000e700
add esp, 4
movzx eax, al
push eax
call fcn.10010800
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1001f222
mov edx, dword [ebp + 8]
mov dword [ebp - 0xac], edx
jmp 0x1001f22d
call fcn.1000ce60
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
jmp 0x1001f46c
mov dword [ebp - 0x18], 8
lea eax, [ebp + 8]
push eax
call fcn.1000e700
add esp, 4
mov byte [ebp - 0x1a], al
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.100140e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.1001c970
mov ecx, eax
call fcn.100153d0
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.10007170
add esi, eax
push esi
lea edx, [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.1001c970
mov ecx, eax
call fcn.100153d0
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x19]
push ecx
lea edx, [ebp - 0x1a]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x38]
call fcn.1001f0e0
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jl 0x1001f436
cmp dword [ebp - 0xac], 1
jle 0x1001f2f0
cmp dword [ebp - 0xac], 3
je 0x1001f3e2
jmp 0x1001f436
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1001c970
mov ecx, eax
call fcn.100153d0
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x40], ecx
je 0x1001f366
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1001c970
mov ecx, eax
call fcn.100153d0
push eax
call fcn.100602d8
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x1001f366
call fcn.1000ce60
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10003cd0
mov eax, dword [ebp - 0x98]
jmp 0x1001f46c
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x1a]
cmp dword [ebp - 0x20], eax
je 0x1001f398
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10003cd0
mov eax, dword [ebp - 0x9c]
jmp 0x1001f46c
cmp dword [ebp - 0x40], 0
jbe 0x1001f3a0
jmp 0x1001f3e0
lea ecx, [ebp - 0x3c]
call fcn.10007170
cmp eax, 0x20
jae 0x1001f3bb
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.1001c760
jmp 0x1001f3e0
call fcn.1000ce60
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10003cd0
mov eax, dword [ebp - 0xa0]
jmp 0x1001f46c
jmp 0x1001f458
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x1a]
push edx
call fcn.10010800
add esp, 8
movzx eax, al
test eax, eax
je 0x1001f408
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xac], ecx
jmp 0x1001f413
call fcn.1000ce60
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xa4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10003cd0
mov eax, dword [ebp - 0xa4]
jmp 0x1001f46c
call fcn.1000ce60
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.10003cd0
mov eax, dword [ebp - 0xa8]
jmp 0x1001f46c
jmp 0x1001f266
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.1002161d
mov esp, ebp
pop ebp
ret 4