Function at 0x4c2e98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4c2ea0
push ebx
push esi
push edi
mov esi, eax
mov ebx, dword [0x4d426c]
xor eax, eax
push ebp
push 0x4c32f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
cmp byte [eax + 0x39be], 0
je 0x4c32db
mov eax, dword [ebx]
cmp byte [eax + 0x39bf], 0
je 0x4c32db
mov eax, dword [ebx]
cmp byte [eax + 0x39c1], 0
jne 0x4c32db
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [esi + 0x3dc]
call fcn.00462330
mov eax, dword [ebp - 8]
mov edx, 0x4c330c
call fcn.00404fa4
jne 0x4c2f18
mov dword [ebp - 4], 1
jmp 0x4c2f88
lea edx, [ebp - 0xc]
mov eax, dword [esi + 0x3dc]
call fcn.00462330
mov eax, dword [ebp - 0xc]
mov edx, 0x4c3318
call fcn.00404fa4
jne 0x4c2f3e
mov dword [ebp - 4], 2
jmp 0x4c2f88
lea edx, [ebp - 0x10]
mov eax, dword [esi + 0x3dc]
call fcn.00462330
mov eax, dword [ebp - 0x10]
mov edx, 0x4c3324
call fcn.00404fa4
jne 0x4c2f64
mov dword [ebp - 4], 3
jmp 0x4c2f88
lea edx, [ebp - 0x14]
mov eax, dword [esi + 0x3dc]
call fcn.00462330
mov eax, dword [ebp - 0x14]
mov edx, 0x4c3330
call fcn.00404fa4
jne 0x4c2f88
mov dword [ebp - 4], 4
mov eax, dword [esi + 0x3ec]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c2f9e
add dword [ebp - 4], 8
lea edx, [ebp - 0x18]
mov eax, dword [esi + 0x3d0]
call fcn.00462330
mov eax, dword [ebp - 0x18]
mov edx, 0x4c333c
call fcn.00404fa4
je 0x4c2fd8
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x3d0]
call fcn.00462330
mov eax, dword [ebp - 0x1c]
mov edx, 0x4c3354
call fcn.00404fa4
jne 0x4c2fdc
add dword [ebp - 4], 0x10
mov eax, dword [esi + 0x320]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
jne 0x4c308e
xor edi, edi
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0x3c8]
call fcn.00462330
mov eax, dword [ebp - 0x20]
mov edx, 0x4c3368
call fcn.00404fa4
jne 0x4c3018
xor edi, edi
jmp 0x4c311e
lea edx, [ebp - 0x24]
mov eax, dword [esi + 0x3c8]
call fcn.00462330
mov eax, dword [ebp - 0x24]
mov edx, 0x4c3378
call fcn.00404fa4
jne 0x4c303c
xor edi, edi
jmp 0x4c311e
lea edx, [ebp - 0x28]
mov eax, dword [esi + 0x3c8]
call fcn.00462330
mov eax, dword [ebp - 0x28]
mov edx, 0x4c3388
call fcn.00404fa4
jne 0x4c3063
mov edi, 3
jmp 0x4c311e
lea edx, [ebp - 0x2c]
mov eax, dword [esi + 0x3c8]
call fcn.00462330
mov eax, dword [ebp - 0x2c]
mov edx, 0x4c3398
call fcn.00404fa4
jne 0x4c311e
mov edi, 4
jmp 0x4c311e
mov edi, 3
lea edx, [ebp - 0x30]
mov eax, dword [esi + 0x3c8]
call fcn.00462330
mov eax, dword [ebp - 0x30]
mov edx, 0x4c3368
call fcn.00404fa4
jne 0x4c30b7
mov edi, 3
jmp 0x4c311e
lea edx, [ebp - 0x34]
mov eax, dword [esi + 0x3c8]
call fcn.00462330
mov eax, dword [ebp - 0x34]
mov edx, 0x4c3378
call fcn.00404fa4
jne 0x4c30db
mov edi, 3
jmp 0x4c311e
lea edx, [ebp - 0x38]
mov eax, dword [esi + 0x3c8]
call fcn.00462330
mov eax, dword [ebp - 0x38]
mov edx, 0x4c3388
call fcn.00404fa4
jne 0x4c30fc
xor edi, edi
jmp 0x4c311e
lea edx, [ebp - 0x3c]
mov eax, dword [esi + 0x3c8]
call fcn.00462330
mov eax, dword [ebp - 0x3c]
mov edx, 0x4c3398
call fcn.00404fa4
jne 0x4c311e
mov edi, 4
mov eax, edi
shl eax, 5
add dword [ebp - 4], eax
mov eax, dword [0x4d5da8]
mov eax, dword [eax + 0x340]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c3144
mov edi, 0x10
jmp 0x4c3146
xor edi, edi
mov eax, dword [0x4d5da8]
call fcn.004c091c
add edi, eax
lea edx, [ebp - 0x40]
mov eax, dword [esi + 0x34c]
call fcn.00462330
mov eax, dword [ebp - 0x40]
mov edx, 0x4c33ac
call fcn.00404fa4
jne 0x4c3172
add edi, 0x20
mov eax, dword [ebx]
cmp byte [eax + 0x39eb], 0
jne 0x4c3191
mov eax, dword [ebx]
mov eax, dword [eax + 0x31c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c3194
add edi, 0x40
mov eax, dword [esi + 0x318]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4c31ac
add edi, 0x80
mov al, byte [ebp - 4]
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], 0x80
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, 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], 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 0x4c32fd
lea eax, [ebp - 0x40]
mov edx, 0xf
call fcn.00404bbc
ret