Function at 0x4c1054
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [0x4d426c]
xor eax, eax
push ebp
push 0x4c1326
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
cmp byte [eax + 0x39be], 0
je 0x4c1310
mov eax, dword [ebx]
cmp byte [eax + 0x39bf], 0
je 0x4c1310
mov eax, dword [ebx]
cmp byte [eax + 0x39c1], 0
jne 0x4c1310
mov eax, dword [0x4d5da8]
mov eax, dword [eax + 0x300]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c10c1
xor esi, esi
jmp 0x4c1120
mov eax, dword [0x4d5da8]
mov eax, dword [eax + 0x304]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c10df
mov esi, 1
jmp 0x4c1120
mov eax, dword [0x4d5da8]
mov eax, dword [eax + 0x308]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c10fd
mov esi, 2
jmp 0x4c1120
mov eax, dword [0x4d5da8]
mov eax, dword [eax + 0x344]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c111b
mov esi, 3
jmp 0x4c1120
mov esi, 4
mov eax, esi
shl eax, 5
mov esi, eax
xor edi, edi
add edi, esi
mov eax, dword [ebx]
cmp byte [eax + 0x39ec], 0
je 0x4c113d
mov esi, 0x10
jmp 0x4c113f
xor esi, esi
mov eax, dword [ebx]
mov eax, dword [eax + 0x300]
mov edx, 0x10
sub edx, dword [eax + 0x20c]
add esi, edx
add edi, esi
mov eax, dword [0x4d5da8]
mov eax, dword [eax + 0x340]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c1174
mov esi, 0x10
jmp 0x4c1176
xor esi, esi
mov eax, dword [0x4d5da8]
call fcn.004c091c
add esi, eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.00462330
mov eax, dword [ebp - 8]
mov edx, 0x4c133c
call fcn.00404fa4
jne 0x4c11a5
add esi, 0x20
mov eax, dword [ebx]
cmp byte [eax + 0x39eb], 0
jne 0x4c11c4
mov eax, dword [ebx]
mov eax, dword [eax + 0x31c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c11c7
add esi, 0x40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c11e2
add esi, 0x80
mov eax, edi
mov edx, dword [ebx]
mov byte [edx + 0x5c4], al
push 0
mov eax, dword [ebx]
add eax, 0x3974
push eax
push 1
mov eax, dword [ebx]
add eax, 0x5c4
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x3e0]
push eax
call sub.kernel32.dll_WriteFile_1
push 5
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebx]
mov byte [eax + 0x5c4], 0x40
push 0
mov eax, dword [ebx]
add eax, 0x3974
push eax
push 4
mov eax, dword [ebx]
add eax, 0x5c4
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x3e0]
push eax
call sub.kernel32.dll_WriteFile_1
push 5
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebx]
mov byte [eax + 0x5c4], 0
push 0
mov eax, dword [ebx]
add eax, 0x3974
push eax
push 4
mov eax, dword [ebx]
add eax, 0x5c4
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x3e0]
push eax
call sub.kernel32.dll_WriteFile_1
push 5
call sub.kernel32.dll_Sleep_1
mov eax, esi
mov edx, dword [ebx]
mov byte [edx + 0x5c4], al
push 0
mov eax, dword [ebx]
add eax, 0x3974
push eax
push 1
mov eax, dword [ebx]
add eax, 0x5c4
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x3e0]
push eax
call sub.kernel32.dll_WriteFile_1
push 5
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebx]
mov byte [eax + 0x5c4], 0x60
push 0
mov eax, dword [ebx]
add eax, 0x3974
push eax
push 4
mov eax, dword [ebx]
add eax, 0x5c4
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x3e0]
push eax
call sub.kernel32.dll_WriteFile_1
push 5
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebx]
mov byte [eax + 0x5c4], 0
push 0
mov eax, dword [ebx]
add eax, 0x3974
push eax
push 4
mov eax, dword [ebx]
add eax, 0x5c4
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x3e0]
push eax
call sub.kernel32.dll_WriteFile_1
push 5
call sub.kernel32.dll_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c132d
lea eax, [ebp - 8]
call fcn.00404b98
ret