Function at 0x10047800
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x101e5aec]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x118]
cmp dword [0x101d07a8], 0xffffa43f
cmp dword [0x101d07ac], 0xfffff26e
mov edx, dword [eax]
push ecx
pop ecx
mov ecx, dword [eax + 4]
nop
cmp edx, 2
jne 0x10047a68
cmp ecx, edx
jne 0x1004791c
cmp dword [0x101d07b0], 0x1ccf
cmp dword [eax + 0x24], 0
jne 0x100478b6
mov byte [esp + 8], 0x14
mov ch, ch
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
cmp dword [0x101d07b8], 0x2b02
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
push ecx
pop ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
cmp dword [0x101d07ac], 0xfffff26e
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
cmp dword [0x101d07c0], 0xffffba6c
mov eax, 0x15
mov ebx, ebx
jmp 0x10047adc
mov byte [esp + 8], 0x1e
cmp dword [0x101d07a8], 0x5bc0
mov ecx, dword [eax + 0x20]
mov dword [esp + 9], ecx
cmp dword [0x101d07c8], 0x5a16
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
cmp dword [0x101d07a4], 0xffff91b2
mov edx, dword [eax + 8]
mov dword [esp + 0x15], edx
cmp dword [0x101d07c8], 0xffffa5e9
mov eax, dword [eax + 0x18]
mov dword [esp + 0x19], eax
cmp dword [0x101d07ac], 0xfffff26e
mov eax, 0x15
mov eax, eax
jmp 0x10047adc
cmp ecx, 3
jne 0x100479f1
cmp dword [0x101d07c4], 0x4159
mov ch, ch
cmp dword [eax + 0x24], 0
je 0x1004799b
mov byte [esp + 8], 4
mov dl, dl
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
nop
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
push ecx
pop ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
cmp dword [0x101d07b8], 0xffffd4fd
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x19], ecx
cmp dword [0x101d07b8], 0xffffd4fd
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x1d], edx
push edx
pop edx
mov dword [esp + 0x21], esi
mov ah, ah
mov eax, 0x1d
cmp dword [0x101d07b4], 0x778
jmp 0x10047adc
mov byte [esp + 8], 5
mov al, al
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
push edx
pop edx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
push ecx
pop ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
cmp dword [0x101d07a4], 0xffff91b2
mov eax, dword [eax + 0x20]
mov dword [esp + 0x19], eax
cmp dword [0x101d07c8], 0xffffa5e9
mov eax, 0x15
cmp dword [0x101d07ac], 0xd91
jmp 0x10047adc
cmp ecx, 4
jne 0x10047b3a
cmp dword [0x101d07b0], 0xffffe330
mov byte [esp + 8], 7
mov al, al
mov ecx, dword [eax + 0x18]
mov dword [esp + 9], ecx
cmp dword [0x101d07c0], 0xffffba6c
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xd], edx
mov dword [esp + 0x11], ecx
cmp dword [0x101d07a8], 0x5bc0
mov edx, dword [eax + 0x10]
mov dword [esp + 0x15], edx
cmp dword [0x101d07b0], 0xffffe330
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x19], ecx
push eax
pop eax
mov edx, dword [eax + 0x20]
mov dword [esp + 0x1d], edx
mov edx, edx
mov eax, 0x19
cmp dword [0x101d07b8], 0x2b02
jmp 0x10047adc
cmp ecx, 1
jne 0x10047a75
mov byte [esp + 8], cl
mov edx, edx
jmp 0x10047aa9
cmp ecx, 0x14
jne 0x10047a83
mov byte [esp + 8], 2
mov bh, bh
jmp 0x10047aa9
cmp ecx, 0x1e
jne 0x10047a91
mov byte [esp + 8], 3
mov cl, cl
jmp 0x10047aa9
cmp ecx, 5
jne 0x10047b3a
mov byte [esp + 8], 6
cmp dword [0x101d07bc], 0xffffb03c
mov esi, dword [esp + 0x114]
lea ecx, [esi - 8]
push ecx
add eax, 8
push eax
lea edx, [esp + 0x11]
push edx
call fcn.1012fbf0
add esp, 0xc
cmp dword [0x101d07b4], 0xfffff887
lea eax, [esi - 7]
cmp dword [0x101d07c0], 0x4593
mov ecx, dword [0x102eab28]
test ecx, ecx
je 0x10047b3a
cmp ecx, 0xffffffff
je 0x10047b3a
mov dword [esp + 4], 0
cmp dword [0x101d07bc], 0x4fc3
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [0x102eab28]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, al
cmp dword [esp + 4], 0
jne 0x10047b3a
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1012e3ba
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1012e3ba
add esp, 0x108
ret