Function at 0x10020320
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x10132f1c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x118]
mov al, al
mov dl, dl
mov edx, dword [eax]
push ebx
pop ebx
mov ecx, dword [eax + 4]
mov cl, cl
cmp edx, 2
jne 0x100204ce
cmp ecx, edx
jne 0x100203e3
mov bh, bh
cmp dword [eax + 0x24], 0
jne 0x100203a6
mov byte [esp + 8], 0x14
mov edi, edi
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 edx, edx
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
push edx
pop edx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
mov ebx, ebx
mov eax, 0x15
nop
jmp 0x1002052a
mov byte [esp + 8], 0x1e
mov edx, edx
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
mov bl, bl
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov esi, esi
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
nop
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
mov cl, cl
mov eax, 0x15
push eax
pop eax
jmp 0x1002052a
cmp ecx, 3
jne 0x1002047f
mov ch, ch
push edx
pop edx
cmp dword [eax + 0x24], 0
je 0x10020442
mov byte [esp + 8], 4
mov cl, cl
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov ch, ch
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
push ebx
pop ebx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
mov cl, cl
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x19], ecx
nop
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1d], edx
push ebx
pop ebx
mov dword [esp + 0x21], esi
push ecx
pop ecx
mov eax, 0x1d
push edx
pop edx
jmp 0x1002052a
mov byte [esp + 8], 5
mov edx, edx
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov dh, dh
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
push eax
pop eax
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
mov ecx, ecx
mov eax, dword [eax + 0x20]
mov dword [esp + 0x19], eax
mov ecx, ecx
mov eax, 0x15
nop
jmp 0x1002052a
cmp ecx, 4
jne 0x10020580
push ebx
pop ebx
mov byte [esp + 8], 7
mov dl, dl
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov dh, dh
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
mov dh, dh
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x19], ecx
mov ebp, ebp
mov edx, dword [eax + 0x20]
mov dword [esp + 0x1d], edx
push eax
pop eax
mov eax, 0x19
mov ah, ah
jmp 0x1002052a
cmp ecx, 1
jne 0x100204db
mov byte [esp + 8], cl
mov al, al
jmp 0x10020507
cmp ecx, 0x14
jne 0x100204e9
mov byte [esp + 8], 2
push eax
pop eax
jmp 0x10020507
cmp ecx, 0x1e
jne 0x100204f7
mov byte [esp + 8], 3
mov edi, edi
jmp 0x10020507
cmp ecx, 5
jne 0x10020580
mov byte [esp + 8], 6
mov 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.100abe40
add esp, 0xc
mov bh, bh
lea eax, [esi - 7]
mov bh, bh
mov ecx, dword [0x10237ed8]
test ecx, ecx
je 0x10020580
cmp ecx, 0xffffffff
je 0x10020580
mov dword [esp + 4], 0
mov ebp, ebp
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [0x10237ed8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, edx
cmp dword [esp + 4], 0
jne 0x10020580
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100aa646
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.100aa646
add esp, 0x108
ret