Function at 0x1002d280
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x101b23cc]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x118]
push ebx
pop ebx
mov cl, cl
mov edx, dword [eax]
mov dh, dh
mov ecx, dword [eax + 4]
mov ecx, ecx
cmp edx, 2
jne 0x1002d430
cmp ecx, edx
jne 0x1002d343
mov ah, ah
cmp dword [eax + 0x24], 0
jne 0x1002d306
mov byte [esp + 8], 0x14
mov ebx, ebx
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
xchg ebx, eax
xchg ebx, eax
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov cl, cl
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
mov cl, cl
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
nop
mov eax, 0x15
mov esi, esi
jmp 0x1002d48c
mov byte [esp + 8], 0x1e
mov ebp, ebp
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
xchg ebx, eax
xchg ebx, eax
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
xchg ebx, eax
xchg ebx, eax
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
nop
mov eax, 0x15
mov al, al
jmp 0x1002d48c
cmp ecx, 3
jne 0x1002d3e1
xchg ebx, eax
xchg ebx, eax
mov cl, cl
cmp dword [eax + 0x24], 0
je 0x1002d3a3
mov byte [esp + 8], 4
mov bh, bh
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
xchg ebx, eax
xchg ebx, eax
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov bl, bl
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
mov dl, dl
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x19], ecx
mov bl, bl
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1d], edx
mov esi, esi
mov dword [esp + 0x21], esi
mov al, al
mov eax, 0x1d
mov cl, cl
jmp 0x1002d48c
mov byte [esp + 8], 5
mov dl, dl
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov eax, eax
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov ecx, ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
xchg ebx, eax
xchg ebx, eax
mov eax, dword [eax + 0x20]
mov dword [esp + 0x19], eax
mov edx, edx
mov eax, 0x15
mov bh, bh
jmp 0x1002d48c
cmp ecx, 4
jne 0x1002d4e2
push edx
pop edx
mov byte [esp + 8], 7
mov edx, edx
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov al, al
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov dl, dl
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
mov esi, esi
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x19], ecx
mov bl, bl
mov edx, dword [eax + 0x20]
mov dword [esp + 0x1d], edx
mov bh, bh
mov eax, 0x19
mov ecx, ecx
jmp 0x1002d48c
cmp ecx, 1
jne 0x1002d43d
mov byte [esp + 8], cl
push ecx
pop ecx
jmp 0x1002d469
cmp ecx, 0x14
jne 0x1002d44b
mov byte [esp + 8], 2
mov ebx, ebx
jmp 0x1002d469
cmp ecx, 0x1e
jne 0x1002d459
mov byte [esp + 8], 3
mov ah, ah
jmp 0x1002d469
cmp ecx, 5
jne 0x1002d4e2
mov byte [esp + 8], 6
mov dl, dl
mov esi, dword [esp + 0x114]
lea ecx, [esi - 8]
push ecx
add eax, 8
push eax
lea edx, [esp + 0x11]
push edx
call fcn.100fe3e0
add esp, 0xc
mov al, al
lea eax, [esi - 7]
mov dl, dl
mov ecx, dword [0x102b7408]
test ecx, ecx
je 0x1002d4e2
cmp ecx, 0xffffffff
je 0x1002d4e2
mov dword [esp + 4], 0
mov esi, esi
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [0x102b7408]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ch, ch
cmp dword [esp + 4], 0
jne 0x1002d4e2
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100fc49a
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.100fc49a
add esp, 0x108
ret