Function at 0x4c7bfe20
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c7d6048
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
mov esi, ecx
jne 0x4c7bfe5f
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x2e
lea eax, [ebp - 0x8f]
push 0
push eax
mov byte [ebp - 0x90], 0
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
mov word [ebp - 0x28], 0
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x4c785034
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx edx, word [ebp - 0x1a]
movzx ecx, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x1c]
push edx
movzx edx, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push ecx
movzx ecx, word [ebp - 0x26]
push edx
movzx edx, word [ebp - 0x28]
push eax
push ecx
push edx
lea eax, [ebp - 0x90]
push 0x4c784fd8
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
lea eax, [ebp - 0x90]
add esp, 0x30
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c7bfef0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
sub eax, edx
push 0xfde9
mov dword [ebp - 0x3c], eax
call ebx
mov edi, eax
lea ecx, [ebp - 0xd]
push ecx
lea edx, [edi + 1]
push edx
lea ecx, [ebp - 0x60]
mov byte [ebp - 0xd], 0
call fcn.4c7bf950
mov eax, dword [ebp + 0xc]
push 0
push 0
push edi
mov edi, dword [ebp - 0x5c]
push edi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x4c7c0088
mov eax, edi
lea edx, [eax + 1]
jmp 0x4c7bff60
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c7bff60
sub eax, edx
push esi
mov byte [ebp - 0x34], cl
mov dword [ebp - 0x50], eax
xor eax, eax
lea ecx, [ebp - 0x34]
push 0x4c785030
push ecx
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov word [ebp - 0x2b], ax
mov byte [ebp - 0x29], al
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [esi + esi*2]
lea edx, [ebp + 0xf]
mov dword [ebp - 0x38], eax
push edx
add eax, 1
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp + 0xf], 0
call fcn.4c7bf950
mov ebx, dword [ebp - 0x48]
xor eax, eax
test esi, esi
jbe 0x4c7bfff7
lea ecx, [ebx + 2]
mov dl, 0x20
jmp 0x4c7bffc0
mov edi, dword [ebp + 8]
mov byte [ecx - 2], dl
movzx ebx, byte [eax + edi]
shr ebx, 4
movzx ebx, byte [ebx + 0x4c78501c]
mov byte [ecx - 1], bl
movzx ebx, byte [eax + edi]
and ebx, 0xf
movzx ebx, byte [ebx + 0x4c78501c]
mov byte [ecx], bl
add eax, 1
add ecx, 3
cmp eax, esi
jb 0x4c7bffc0
mov edi, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
sub eax, ebx
mov byte [ebx], 0x2c
mov byte [eax + ebx - 1], 0
mov eax, dword [0x4c7de448]
test eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
je 0x4c7c007f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4c7c007f
lea eax, [ebp - 0x34]
mov byte [ebp - 0x14], 1
lea edx, [eax + 1]
jmp 0x4c7c0030
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c7c0030
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x50]
sub eax, edx
mov edx, dword [ebp - 0x3c]
add ecx, eax
add ecx, esi
lea eax, [ecx + edx + 2]
push eax
call fcn.4c7bf400
test eax, eax
jne 0x4c7c005c
mov ecx, dword [ebp - 0x18]
push ecx
jmp 0x4c7c0079
mov edx, dword [0x4c7dc230]
mov eax, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x90]
call fcn.4c7bf700
test eax, eax
jne 0x4c7c00ae
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call sub.MFC42.dll_operatordelete
add esp, 4
test edi, edi
je 0x4c7c01a4
push edi
call sub.MFC42.dll_operatordelete
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x4c7dc230]
push ecx
mov eax, esi
mov ecx, edi
call fcn.4c7bf700
test eax, eax
jne 0x4c7c00d1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4c7c0194
lea eax, [ebp - 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4c7c00d7
mov ecx, dword [0x4c7dc230]
push ecx
sub eax, edx
lea ecx, [ebp - 0x34]
call fcn.4c7bf700
test eax, eax
je 0x4c7c018c
mov edx, dword [0x4c7dc230]
mov eax, dword [ebp - 0x38]
push edx
mov ecx, ebx
call fcn.4c7bf700
test eax, eax
je 0x4c7c018c
mov ebx, dword [0x4c7dc230]
mov dword [ebp + 0xc], 0
mov esi, 0x4c784fd4
mov edi, 2
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c7c018c
mov eax, dword [ebp + 0xc]
add esi, eax
sub edi, eax
jne 0x4c7c0125
mov eax, dword [0x4c7dc230]
cmp eax, 0xffffffff
je 0x4c7c015c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4c7dc230], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.4c7bf7b0
lea ecx, [ebp - 0x4c]
call fcn.4c7a5e80
lea ecx, [ebp - 0x60]
call fcn.4c7a5e80
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x18]
call fcn.4c7bf7b0
lea ecx, [ebp - 0x4c]
call fcn.4c7a5e80
lea ecx, [ebp - 0x60]
call fcn.4c7a5e80
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8