Function at 0x1001dfd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x100c2d54]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x118]
test eax, eax
test al, al
mov edx, dword [eax]
push eax
pop eax
mov ecx, dword [eax + 4]
mov ebx, ebx
cmp edx, 2
jne 0x1001e18a
cmp ecx, edx
jne 0x1001e098
mov edi, edi
cmp dword [eax + 0x24], 0
jne 0x1001e05a
mov byte [esp + 8], 0x14
test al, al
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
mov cl, cl
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
test eax, 0x6ad7
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
push edx
pop edx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
push eax
pop eax
mov eax, 0x15
mov ebx, ebx
jmp 0x1001e1e5
mov byte [esp + 8], 0x1e
test dh, dh
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
mov dl, dl
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov bl, bl
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
test dl, dl
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
test cl, cl
mov eax, 0x15
mov edi, edi
jmp 0x1001e1e5
cmp ecx, 3
jne 0x1001e139
push eax
pop eax
mov cl, cl
cmp dword [eax + 0x24], 0
je 0x1001e0fb
mov byte [esp + 8], 4
test eax, 0x37b3
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
test ah, ah
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
test ah, ah
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
mov cl, cl
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x19], ecx
mov esi, esi
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1d], edx
test al, al
mov dword [esp + 0x21], esi
mov cl, cl
mov eax, 0x1d
mov edx, edx
jmp 0x1001e1e5
mov byte [esp + 8], 5
test bl, bl
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
push edx
pop edx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
test edi, edi
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
test eax, eax
mov eax, dword [eax + 0x20]
mov dword [esp + 0x19], eax
mov al, al
mov eax, 0x15
test dl, dl
jmp 0x1001e1e5
cmp ecx, 4
jne 0x1001e23a
nop
mov byte [esp + 8], 7
test dl, dl
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov bl, bl
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov edx, edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
mov eax, eax
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x19], ecx
test eax, 0x5bc6
mov edx, dword [eax + 0x20]
mov dword [esp + 0x1d], edx
mov esi, esi
mov eax, 0x19
mov dh, dh
jmp 0x1001e1e5
cmp ecx, 1
jne 0x1001e197
mov byte [esp + 8], cl
test ah, ah
jmp 0x1001e1c2
cmp ecx, 0x14
jne 0x1001e1a5
mov byte [esp + 8], 2
push ecx
pop ecx
jmp 0x1001e1c2
cmp ecx, 0x1e
jne 0x1001e1b6
mov byte [esp + 8], 3
test eax, 0x6c03
jmp 0x1001e1c2
cmp ecx, 5
jne 0x1001e23a
mov byte [esp + 8], 6
test eax, eax
mov esi, dword [esp + 0x114]
lea ecx, [esi - 8]
push ecx
add eax, 8
push eax
lea edx, [esp + 0x11]
push edx
call fcn.1005f780
add esp, 0xc
mov cl, cl
lea eax, [esi - 7]
xchg ebx, eax
xchg ebx, eax
mov ecx, dword [0x101c7c50]
test ecx, ecx
je 0x1001e23a
cmp ecx, 0xffffffff
je 0x1001e23a
mov dword [esp + 4], 0
push edx
pop edx
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [0x101c7c50]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
cmp dword [esp + 4], 0
jne 0x1001e23a
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1005df84
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1005df84
add esp, 0x108
ret