Function at 0x1003f510
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x101af0fc]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x118]
test dl, dl
test cl, cl
mov edx, dword [eax]
nop
mov ecx, dword [eax + 4]
test cl, cl
cmp edx, 2
jne 0x1003f6c7
cmp ecx, edx
jne 0x1003f5d7
test ebx, ebx
cmp dword [eax + 0x24], 0
jne 0x1003f599
mov byte [esp + 8], 0x14
mov edx, edx
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
test dl, dl
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
test eax, 0x3875
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
mov edx, edx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
mov esi, esi
mov eax, 0x15
test ah, ah
jmp 0x1003f726
mov byte [esp + 8], 0x1e
push ebx
pop 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 dh, dh
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
mov edi, edi
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
mov bh, bh
mov eax, 0x15
test eax, eax
jmp 0x1003f726
cmp ecx, 3
jne 0x1003f675
mov bl, bl
mov dh, dh
cmp dword [eax + 0x24], 0
je 0x1003f637
mov byte [esp + 8], 4
mov bh, bh
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov ah, ah
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 esi, esi
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x19], ecx
test ah, ah
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1d], edx
test cl, cl
mov dword [esp + 0x21], esi
mov dh, dh
mov eax, 0x1d
mov bl, bl
jmp 0x1003f726
mov byte [esp + 8], 5
push eax
pop eax
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
test cl, cl
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
test bl, bl
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
push edx
pop edx
mov eax, dword [eax + 0x20]
mov dword [esp + 0x19], eax
mov edi, edi
mov eax, 0x15
mov ecx, ecx
jmp 0x1003f726
cmp ecx, 4
jne 0x1003f77c
mov ch, ch
mov byte [esp + 8], 7
test bh, bh
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 edi, edi
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
push eax
pop eax
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x19], ecx
push edx
pop edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x1d], edx
test bh, bh
mov eax, 0x19
test eax, 0x4d88
jmp 0x1003f726
cmp ecx, 1
jne 0x1003f6d4
mov byte [esp + 8], cl
test dh, dh
jmp 0x1003f700
cmp ecx, 0x14
jne 0x1003f6e2
mov byte [esp + 8], 2
mov bl, bl
jmp 0x1003f700
cmp ecx, 0x1e
jne 0x1003f6f0
mov byte [esp + 8], 3
mov cl, cl
jmp 0x1003f700
cmp ecx, 5
jne 0x1003f77c
mov byte [esp + 8], 6
mov edx, edx
mov esi, dword [esp + 0x114]
lea ecx, [esi - 8]
push ecx
add eax, 8
push eax
lea edx, [esp + 0x11]
push edx
call fcn.10102690
add esp, 0xc
test eax, 0x47c6
lea eax, [esi - 7]
test ah, ah
mov ecx, dword [0x101b53b8]
test ecx, ecx
je 0x1003f77c
cmp ecx, 0xffffffff
je 0x1003f77c
mov dword [esp + 4], 0
test bh, bh
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [0x101b53b8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test ecx, ecx
cmp dword [esp + 4], 0
jne 0x1003f77c
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1010190d
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1010190d
add esp, 0x108
ret