Function at 0x1001c200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071938
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x1008e46c]
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.1001bd40
mov dword [ebp - 0xac], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xac]
push ecx
call fcn.1001be50
add esp, 8
movzx edx, al
test edx, edx
je 0x1001c269
lea eax, [ebp + 8]
push eax
call fcn.1001c570
add esp, 4
jmp 0x1001c548
mov ecx, dword [ebp - 0x14]
call fcn.1001fbf0
test eax, eax
je 0x1001c2ad
mov ecx, dword [ebp - 0x14]
call fcn.1001fbf0
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.1001fcc0
cmp esi, eax
jae 0x1001c2ad
lea eax, [ebp + 8]
push eax
call fcn.1001bfc0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x14]
call fcn.1001fe90
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x1001c548
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x54], 0
jne 0x1001c2c0
call fcn.1001bd40
jmp 0x1001c548
mov ecx, dword [ebp - 0x14]
call fcn.10020450
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x44], 0
jne 0x1001c31a
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.1001bfc0
add esp, 4
movzx eax, al
push eax
call fcn.1001c5b0
movzx ecx, al
test ecx, ecx
je 0x1001c2ff
mov edx, dword [ebp + 8]
mov dword [ebp - 0xb0], edx
jmp 0x1001c30a
call fcn.1001bd40
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
jmp 0x1001c548
mov dword [ebp - 0x18], 8
lea eax, [ebp + 8]
push eax
call fcn.1001bfc0
add esp, 4
mov byte [ebp - 0x1a], al
push 0
push 8
lea ecx, [ebp - 0x40]
call fcn.1001eee0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.1001f2f0
mov ecx, eax
call fcn.10020c10
mov esi, eax
lea ecx, [ebp - 0x40]
call fcn.1001b5c0
add esi, eax
push esi
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x40]
call fcn.1001f2f0
mov ecx, eax
call fcn.10020c10
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, 0x4c
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x44]
call fcn.10020f80
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jl 0x1001c512
cmp dword [ebp - 0xb0], 1
jle 0x1001c3cd
cmp dword [ebp - 0xb0], 3
je 0x1001c4c1
jmp 0x1001c512
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x40]
call fcn.1001f2f0
mov ecx, eax
call fcn.10020c10
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x44], ecx
je 0x1001c443
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 1
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x40]
call fcn.1001f2f0
mov ecx, eax
call fcn.10020c10
push eax
call fcn.10043d2b
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x1001c443
call fcn.1001bd40
mov dword [ebp - 0x98], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10010b90
mov eax, dword [ebp - 0x98]
jmp 0x1001c548
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x49], 1
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1a]
cmp eax, ecx
je 0x1001c477
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10010b90
mov eax, dword [ebp - 0x94]
jmp 0x1001c548
cmp dword [ebp - 0x44], 0
jbe 0x1001c47f
jmp 0x1001c4bf
lea ecx, [ebp - 0x40]
call fcn.1001b5c0
cmp eax, 0x20
jae 0x1001c49a
push 0
push 8
lea ecx, [ebp - 0x40]
call fcn.1001f0e0
jmp 0x1001c4bf
call fcn.1001bd40
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10010b90
mov eax, dword [ebp - 0x90]
jmp 0x1001c548
jmp 0x1001c534
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
push ecx
movzx edx, byte [ebp - 0x1a]
push edx
call fcn.1001c5b0
movzx eax, al
test eax, eax
je 0x1001c4e4
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xb0], ecx
jmp 0x1001c4ef
call fcn.1001bd40
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10010b90
mov eax, dword [ebp - 0x8c]
jmp 0x1001c548
call fcn.1001bd40
mov dword [ebp - 0x88], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10010b90
mov eax, dword [ebp - 0x88]
jmp 0x1001c548
jmp 0x1001c343
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.100420d4
mov esp, ebp
pop ebp
ret 4