Function at 0x8c82f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x45c
push edi
mov edi, dword [ecx + 4]
cmp edi, 0xffffffff
mov dword [esp + 0x18], ecx
mov dword [esp + 4], edi
jne 0x8c8313
xor al, al
pop edi
add esp, 0x45c
ret 0xc
mov edx, dword [esp + 0x464]
push ebx
mov ebx, dword [esp + 0x46c]
push ebp
mov ebp, dword [ecx + 0xc]
push esi
mov esi, dword [esp + 0x478]
cmp ebx, 0x63d
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], esi
jne 0x8c839b
mov ecx, 0x108
xor eax, eax
lea edi, [esp + 0x4c]
add esi, 4
rep stosd dword es:[edi], eax
mov eax, dword [esi - 4]
mov dword [esp + 0x4c], edx
mov ecx, eax
lea edi, [esp + 0x5c]
mov edx, ecx
mov dword [esp + 0x50], ebp
shr ecx, 2
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x20], eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
add eax, 0x10
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x58]
push edx
push eax
jmp 0x8c850c
cmp ebx, 0x63c
jne 0x8c83f8
mov ecx, 0x108
xor eax, eax
lea edi, [esp + 0x4c]
add esi, 4
rep stosd dword es:[edi], eax
mov eax, dword [esi - 4]
mov dword [esp + 0x4c], edx
mov ecx, eax
lea edi, [esp + 0x5c]
mov edx, ecx
mov dword [esp + 0x50], ebp
shr ecx, 2
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x20], eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
add eax, 0x10
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x58]
push edx
push eax
jmp 0x8c850c
cmp ebx, 0x613
jne 0x8c8470
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
cmp eax, 0x200
mov dword [esp + 0x20], eax
jbe 0x8c8423
mov eax, 0x200
mov byte [esi + 0x1ff], 0
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], ecx
mov ecx, eax
mov dword [esp + 0x50], edx
mov edx, ecx
lea edi, [esp + 0x5c]
mov dword [esp + 0x58], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
add eax, 0x10
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x30]
push edx
mov ecx, dword [eax + 4]
push ecx
jmp 0x8c850c
cmp ebx, 0x619
jne 0x8c84bc
mov ecx, dword [esi + 8]
mov eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [esi]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x40], ecx
push 0
push eax
lea ecx, [esp + 0x30]
push 0x20
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], edx
push ecx
jmp 0x8c850b
cmp ebx, 0x61a
jne 0x8c84fd
mov eax, 0x14
mov dword [esp + 0x28], edx
mov ecx, 5
lea edi, [esp + 0x38]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x20], eax
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push 0x24
push eax
push ecx
jmp 0x8c850c
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x10
push eax
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x8c853c
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x8c8530
cmp eax, 0xe8
je 0x8c8530
cmp eax, 6
jne 0x8c853c
xor al, al
pop edi
add esp, 0x45c
ret 0xc
mov al, 1
pop edi
add esp, 0x45c
ret 0xc