Function at 0x1002d640
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x101a53c4]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x118]
mov edx, edx
mov eax, eax
mov edx, dword [eax]
mov al, al
mov ecx, dword [eax + 4]
mov bl, bl
cmp edx, 2
jne 0x1002d7f1
cmp ecx, edx
jne 0x1002d704
push ebx
pop ebx
cmp dword [eax + 0x24], 0
jne 0x1002d6c7
mov byte [esp + 8], 0x14
push edx
pop edx
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
mov esi, esi
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov edx, edx
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
mov ah, ah
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
push ebx
pop ebx
mov eax, 0x15
mov eax, eax
jmp 0x1002d84d
mov byte [esp + 8], 0x1e
mov ch, ch
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
push eax
pop eax
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov ecx, ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
mov ebx, ebx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
nop
mov eax, 0x15
mov al, al
jmp 0x1002d84d
cmp ecx, 3
jne 0x1002d7a2
mov eax, eax
mov ebp, ebp
cmp dword [eax + 0x24], 0
je 0x1002d764
mov byte [esp + 8], 4
mov edi, edi
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov ebp, ebp
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 edx, edx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x19], ecx
mov esi, esi
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1d], edx
mov ebx, ebx
mov dword [esp + 0x21], esi
push edx
pop edx
mov eax, 0x1d
mov ebp, ebp
jmp 0x1002d84d
mov byte [esp + 8], 5
mov edx, edx
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov cl, cl
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov ah, ah
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
push ecx
pop ecx
mov eax, dword [eax + 0x20]
mov dword [esp + 0x19], eax
mov ebp, ebp
mov eax, 0x15
mov ebp, ebp
jmp 0x1002d84d
cmp ecx, 4
jne 0x1002d8a3
mov dl, dl
mov byte [esp + 8], 7
mov ebx, ebx
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov dl, dl
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov cl, cl
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
mov edx, edx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x19], ecx
mov al, al
mov edx, dword [eax + 0x20]
mov dword [esp + 0x1d], edx
mov dh, dh
mov eax, 0x19
mov bl, bl
jmp 0x1002d84d
cmp ecx, 1
jne 0x1002d7fe
mov byte [esp + 8], cl
mov bh, bh
jmp 0x1002d82a
cmp ecx, 0x14
jne 0x1002d80c
mov byte [esp + 8], 2
mov dh, dh
jmp 0x1002d82a
cmp ecx, 0x1e
jne 0x1002d81a
mov byte [esp + 8], 3
mov edx, edx
jmp 0x1002d82a
cmp ecx, 5
jne 0x1002d8a3
mov byte [esp + 8], 6
push ebx
pop ebx
mov esi, dword [esp + 0x114]
lea ecx, [esi - 8]
push ecx
add eax, 8
push eax
lea edx, [esp + 0x11]
push edx
call fcn.100f6f60
add esp, 0xc
mov bh, bh
lea eax, [esi - 7]
push ebx
pop ebx
mov ecx, dword [0x102aa408]
test ecx, ecx
je 0x1002d8a3
cmp ecx, 0xffffffff
je 0x1002d8a3
mov dword [esp + 4], 0
mov ah, ah
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [0x102aa408]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edi, edi
cmp dword [esp + 4], 0
jne 0x1002d8a3
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100f5016
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.100f5016
add esp, 0x108
ret