Function at 0x10043570
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x101ce2ac]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x118]
mov ecx, ecx
nop
mov edx, dword [eax]
mov bh, bh
mov ecx, dword [eax + 4]
test esi, esi
cmp edx, 2
jne 0x10043726
cmp ecx, edx
jne 0x10043634
xchg ebx, eax
xchg ebx, eax
cmp dword [eax + 0x24], 0
jne 0x100435f6
mov byte [esp + 8], 0x14
xchg ebx, eax
xchg ebx, eax
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
test dh, dh
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
mov dl, dl
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
mov edx, edx
mov eax, 0x15
xchg ebx, eax
xchg ebx, eax
jmp 0x10043785
mov byte [esp + 8], 0x1e
mov eax, eax
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
test eax, eax
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
mov ch, ch
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
test eax, eax
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
test esi, esi
mov eax, 0x15
mov bl, bl
jmp 0x10043785
cmp ecx, 3
jne 0x100436d1
mov eax, eax
mov edi, edi
cmp dword [eax + 0x24], 0
je 0x10043693
mov byte [esp + 8], 4
mov al, al
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
test bl, bl
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
nop
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
test al, al
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x19], ecx
test edi, edi
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1d], edx
mov al, al
mov dword [esp + 0x21], esi
mov al, al
mov eax, 0x1d
test edx, edx
jmp 0x10043785
mov byte [esp + 8], 5
mov bl, bl
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
mov edi, edi
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
push edx
pop edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
mov ebx, ebx
mov eax, dword [eax + 0x20]
mov dword [esp + 0x19], eax
test edx, edx
mov eax, 0x15
mov eax, eax
jmp 0x10043785
cmp ecx, 4
jne 0x100437db
test dh, dh
mov byte [esp + 8], 7
test eax, 0x2385
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
push ebx
pop ebx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
test edx, edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
mov dl, dl
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x19], ecx
mov edi, edi
mov edx, dword [eax + 0x20]
mov dword [esp + 0x1d], edx
test ah, ah
mov eax, 0x19
test eax, 0x4c0b
jmp 0x10043785
cmp ecx, 1
jne 0x10043733
mov byte [esp + 8], cl
push ebx
pop ebx
jmp 0x1004375f
cmp ecx, 0x14
jne 0x10043741
mov byte [esp + 8], 2
push ecx
pop ecx
jmp 0x1004375f
cmp ecx, 0x1e
jne 0x1004374f
mov byte [esp + 8], 3
mov ebp, ebp
jmp 0x1004375f
cmp ecx, 5
jne 0x100437db
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.10117a80
add esp, 0xc
test eax, 0x3ca5
lea eax, [esi - 7]
test bh, bh
mov ecx, dword [0x101d4638]
test ecx, ecx
je 0x100437db
cmp ecx, 0xffffffff
je 0x100437db
mov dword [esp + 4], 0
test ah, ah
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [0x101d4638]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, ecx
cmp dword [esp + 4], 0
jne 0x100437db
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10116cb9
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.10116cb9
add esp, 0x108
ret