Function at 0x47d8b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe78
mov eax, dword [0x4c90b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
cmp dword [ebp + 0x1c], 0
jne 0x47d8d1
jmp 0x47e10e
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 1
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov al, byte [edx]
mov byte [ebp - 0xe5d], al
add dword [ebp - 0xe58], 1
cmp byte [ebp - 0xe5d], 0
jne 0x47d8e9
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
mov dword [ebp - 0xe64], ecx
jne 0x47d920
jmp 0x47e10e
mov ecx, dword [ebp + 8]
call fcn.0047d7c0
mov dword [ebp - 8], eax
movzx eax, byte [ebp + 0x18]
test eax, eax
jne 0x47d93e
cmp dword [ebp - 8], 0
jne 0x47d93e
jmp 0x47e10e
xor eax, eax
mov word [ebp - 0x18], ax
xor eax, eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov byte [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
mov eax, 0x20202020
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x3c], 0
jmp 0x47d9af
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 1
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov al, byte [edx]
mov byte [ebp - 0xe5d], al
add dword [ebp - 0xe58], 1
cmp byte [ebp - 0xe5d], 0
jne 0x47d9c7
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
mov dword [ebp - 0xe64], ecx
mov edx, dword [ebp - 0xe64]
add edx, 1
cmp edx, 0x1e
jbe 0x47da11
mov dword [ebp - 0xe68], 0x1e
jmp 0x47da68
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe6c], eax
mov ecx, dword [ebp - 0xe6c]
add ecx, 1
mov dword [ebp - 0xe70], ecx
mov edx, dword [ebp - 0xe6c]
mov al, byte [edx]
mov byte [ebp - 0xe71], al
add dword [ebp - 0xe6c], 1
cmp byte [ebp - 0xe71], 0
jne 0x47da29
mov ecx, dword [ebp - 0xe6c]
sub ecx, dword [ebp - 0xe70]
mov dword [ebp - 0xe78], ecx
mov edx, dword [ebp - 0xe78]
add edx, 1
mov dword [ebp - 0xe68], edx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0xe68]
jae 0x47dadb
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 1
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov al, byte [edx]
mov byte [ebp - 0xe5d], al
add dword [ebp - 0xe58], 1
cmp byte [ebp - 0xe5d], 0
jne 0x47da8b
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
mov dword [ebp - 0xe64], ecx
mov edx, dword [ebp - 0xe64]
sub edx, dword [ebp - 0x3c]
mov eax, 0x1d
sub eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x14]
mov dl, byte [ecx + edx]
mov byte [ebp + eax - 0x38], dl
jmp 0x47d9a6
cmp dword [ebp - 0x3c], 0x1d
jae 0x47daee
mov eax, 0x1d
sub eax, dword [ebp - 0x3c]
mov byte [ebp + eax - 0x38], 0x7c
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
jmp 0x47db02
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 1
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov al, byte [edx]
mov byte [ebp - 0xe5d], al
add dword [ebp - 0xe58], 1
cmp byte [ebp - 0xe5d], 0
jne 0x47db1a
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
mov dword [ebp - 0xe64], ecx
mov edx, dword [ebp - 0xe64]
add edx, 1
cmp edx, 0x1e
jbe 0x47db64
mov dword [ebp - 0xe68], 0x1e
jmp 0x47dbbb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xe6c], eax
mov ecx, dword [ebp - 0xe6c]
add ecx, 1
mov dword [ebp - 0xe70], ecx
mov edx, dword [ebp - 0xe6c]
mov al, byte [edx]
mov byte [ebp - 0xe71], al
add dword [ebp - 0xe6c], 1
cmp byte [ebp - 0xe71], 0
jne 0x47db7c
mov ecx, dword [ebp - 0xe6c]
sub ecx, dword [ebp - 0xe70]
mov dword [ebp - 0xe78], ecx
mov edx, dword [ebp - 0xe78]
add edx, 1
mov dword [ebp - 0xe68], edx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0xe68]
jae 0x47dc81
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 1
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov al, byte [edx]
mov byte [ebp - 0xe5d], al
add dword [ebp - 0xe58], 1
cmp byte [ebp - 0xe5d], 0
jne 0x47dbe2
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
mov dword [ebp - 0xe64], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0xe68], edx
mov eax, dword [ebp - 0xe68]
add eax, 1
mov dword [ebp - 0xe6c], eax
mov ecx, dword [ebp - 0xe68]
mov dl, byte [ecx]
mov byte [ebp - 0xe6d], dl
add dword [ebp - 0xe68], 1
cmp byte [ebp - 0xe6d], 0
jne 0x47dc2a
mov eax, dword [ebp - 0xe68]
sub eax, dword [ebp - 0xe6c]
mov dword [ebp - 0xe74], eax
mov ecx, dword [ebp - 0xe64]
sub ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0xe74]
mov edx, 0x1d
sub edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + ecx + 1]
mov byte [ebp + edx - 0x38], cl
jmp 0x47daf9
mov byte [ebp - 0x23c], 0
push 0x1ff
push 0
lea eax, [ebp - 0x23b]
push eax
call fcn.0048a4c0
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 1
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov al, byte [edx]
mov byte [ebp - 0xe5d], al
add dword [ebp - 0xe58], 1
cmp byte [ebp - 0xe5d], 0
jne 0x47dcb6
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
mov dword [ebp - 0xe64], ecx
cmp dword [ebp - 0xe64], 0x200
jb 0x47dd10
push str.The_format_string_is_too_long.
push 0x200
lea eax, [ebp - 0x23c]
push eax
call fcn.0048ff59
add esp, 0xc
jmp 0x47dfde
mov dword [ebp - 0x240], 0
call fcn.0047d210
lea eax, [ebp + 0x20]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0xffffffffffffffff
push 0x200
lea edx, [ebp - 0x23c]
push edx
call fcn.0047e1b0
add esp, 0x14
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], 0
cmp dword [ebp - 0x244], 0
jle 0x47ddb3
lea eax, [ebp - 0x23c]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 1
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov al, byte [edx]
mov byte [ebp - 0xe5d], al
add dword [ebp - 0xe58], 1
cmp byte [ebp - 0xe5d], 0
jne 0x47dd7d
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
mov dword [ebp - 0xe64], ecx
jne 0x47dfde
xor eax, eax
mov word [ebp - 0x644], ax
push 0x3fe
push 0
lea eax, [ebp - 0x642]
push eax
call fcn.0048a4c0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa44], ax
push 0x3fe
push 0
lea eax, [ebp - 0xa42]
push eax
call fcn.0048a4c0
add esp, 0xc
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 1
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov al, byte [edx]
mov byte [ebp - 0xe5d], al
add dword [ebp - 0xe58], 1
cmp byte [ebp - 0xe5d], 0
jne 0x47de09
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
mov dword [ebp - 0xe64], ecx
push 0x200
lea edx, [ebp - 0x644]
push edx
mov eax, dword [ebp - 0xe64]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xa48], 0
jmp 0x47de75
mov eax, dword [ebp - 0xa48]
add eax, 1
mov dword [ebp - 0xa48], eax
lea eax, [ebp - 0x644]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 2
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov ax, word [edx]
mov word [ebp - 0xe5e], ax
add dword [ebp - 0xe58], 2
cmp word [ebp - 0xe5e], 0
jne 0x47de90
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
sar ecx, 1
mov dword [ebp - 0xe64], ecx
mov edx, dword [ebp - 0xe64]
sub edx, 1
cmp dword [ebp - 0xa48], edx
jae 0x47df14
mov eax, dword [ebp - 0xa48]
movzx ecx, word [ebp + eax*2 - 0x644]
cmp ecx, 0x25
jne 0x47df0f
mov eax, dword [ebp - 0xa48]
movzx ecx, word [ebp + eax*2 - 0x642]
cmp ecx, 0x53
jne 0x47df0f
mov eax, 0x73
mov ecx, dword [ebp - 0xa48]
mov word [ebp + ecx*2 - 0x642], ax
jmp 0x47de66
call fcn.0047d210
lea eax, [ebp + 0x20]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
push eax
lea ecx, [ebp - 0x644]
push ecx
push 0xffffffffffffffff
push 0x200
lea edx, [ebp - 0xa44]
push edx
call fcn.0047e240
add esp, 0x14
mov dword [ebp - 0x240], 0
push 0x200
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.0048a4c0
add esp, 0xc
lea eax, [ebp - 0xa44]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 2
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov ax, word [edx]
mov word [ebp - 0xe5e], ax
add dword [ebp - 0xe58], 2
cmp word [ebp - 0xe5e], 0
jne 0x47df81
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
sar ecx, 1
mov dword [ebp - 0xe64], ecx
push 0
push 0
push 0x200
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0xe64]
push eax
lea ecx, [ebp - 0xa44]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [ebp - 0xc90], 0
push 0x245
push 0
lea eax, [ebp - 0xc8f]
push eax
call fcn.0048a4c0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0xc]
push edx
movzx eax, word [ebp - 0xc]
push eax
movzx ecx, word [ebp - 0xe]
push ecx
movzx edx, word [ebp - 0x10]
push edx
movzx eax, word [ebp - 0x12]
push eax
movzx ecx, word [ebp - 0x16]
push ecx
movzx edx, word [ebp - 0x18]
push edx
push str.__4d__2d__2d__2d:_2d:_2d___4d___s______d:_d__s_r_n
push 0xffffffffffffffff
push 0x246
lea eax, [ebp - 0xc90]
push eax
call fcn.0047e120
add esp, 0x3c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x47e068
lea eax, [ebp - 0xc90]
push eax
call fcn.0047e2d0
add esp, 4
mov dword [ebp - 0xc94], 0
mov eax, dword [ebp + 8]
add eax, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x108], 0xffffffff
je 0x47e0ff
lea eax, [ebp - 0xc90]
mov dword [ebp - 0xe58], eax
mov ecx, dword [ebp - 0xe58]
add ecx, 1
mov dword [ebp - 0xe5c], ecx
mov edx, dword [ebp - 0xe58]
mov al, byte [edx]
mov byte [ebp - 0xe5d], al
add dword [ebp - 0xe58], 1
cmp byte [ebp - 0xe5d], 0
jne 0x47e0a8
mov ecx, dword [ebp - 0xe58]
sub ecx, dword [ebp - 0xe5c]
mov dword [ebp - 0xe64], ecx
push 0
lea edx, [ebp - 0xc94]
push edx
mov eax, dword [ebp - 0xe64]
push eax
lea ecx, [ebp - 0xc90]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
add eax, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487e4e
mov esp, ebp
pop ebp