Function at 0x10030360
Capabilities:
Create directory
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4568
call fcn.10010620
mov eax, dword [0x10048024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
mov byte [ebp - 0x4050], 0
push 0x1fff
push 0
lea eax, [ebp - 0x404f]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov byte [ebp - 0x2044], 0
push 0x31
push 0
lea ecx, [ebp - 0x2043]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x2050], 0
mov dword [ebp - 0x204c], 0
lea edx, [ebp + 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x4050]
push edx
call dword [sym.imp.ntdll.dll_vsprintf]
add esp, 0xc
mov dword [ebp - 8], 0
mov byte [ebp - 0x2010], 0
push 0x1fff
push 0
lea eax, [ebp - 0x200f]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x4050]
push ecx
lea edx, [ebp - 0x2010]
push edx
call sub.ntdll.dll_strcpy
add esp, 8
push 0
call fcn.10030320
add esp, 4
mov dword [ebp - 0x2050], eax
mov dword [ebp - 0x204c], edx
lea eax, [ebp - 0x2050]
push eax
call fcn.10030340
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
add ecx, 1
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str.__04d__02d__02d__02d:_02d:_02d_
lea ecx, [ebp - 0x2044]
push ecx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x20
push str..cpp_
lea edx, [ebp - 0x2010]
push edx
call fcn.100025e0
add esp, 8
test eax, eax
je 0x100304ce
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2044]
push ecx
push str._s___8d__s_r_n
lea edx, [ebp - 0x4050]
push edx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x14
jmp 0x100304f1
lea eax, [ebp - 0x2010]
push eax
lea ecx, [ebp - 0x2044]
push ecx
push str._s_s_r_n
lea edx, [ebp - 0x4050]
push edx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x4050]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0xffffffff
jne 0x1003071e
mov byte [ebp - 0x4358], 0
push 0x1ff
push 0
lea edx, [ebp - 0x4357]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0x200
lea eax, [ebp - 0x4358]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x4358]
push ecx
call fcn.10001880
add esp, 8
mov dword [ebp - 0x4054], eax
mov edx, dword [ebp - 0x4054]
mov byte [edx], 0
mov byte [ebp - 0x4560], 0
push 0x1ff
push 0
lea eax, [ebp - 0x455f]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x4358]
push ecx
push str._slog
lea edx, [ebp - 0x4560]
push edx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
push 0
lea eax, [ebp - 0x4560]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x4564], 0
jmp 0x100305bf
mov ecx, dword [ebp - 0x4564]
add ecx, 1
mov dword [ebp - 0x4564], ecx
cmp dword [ebp - 0x4564], 0xffffffff
jae 0x1003067e
mov edx, dword [ebp + 8]
add edx, 8
push edx
call sub.ntdll.dll_strlen
add esp, 4
test eax, eax
ja 0x1003060e
push 0x1003fe04
mov eax, dword [ebp - 0x4564]
push eax
push 0x1003fe08
lea ecx, [ebp - 0x4358]
push ecx
push 0x1003fe0c
lea edx, [ebp - 0x4560]
push edx
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x18
jmp 0x1003063d
push 0x1003fe1c
mov eax, dword [ebp - 0x4564]
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
lea edx, [ebp - 0x4358]
push edx
push str._slog_s_d._s
lea eax, [ebp - 0x4560]
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0x18
push 0
push 2
push 3
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x4560]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x4568], eax
cmp dword [ebp - 0x4568], 0xffffffff
je 0x10030677
mov edx, dword [ebp - 0x4568]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10030679
jmp 0x1003067e
jmp 0x100305b0
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x4560]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x435c], eax
mov dword [ebp - 0x4058], 0
mov ecx, 0xb
mov esi, str.AOMEI_Backupper_6.3.0_log_is_as_follows:_r_n_r_n
lea edi, [ebp - 0x4158]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0xd3
push 0
lea edx, [ebp - 0x412b]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x4058]
push eax
lea ecx, [ebp - 0x4158]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x4158]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.1002f980
add esp, 4
mov dword [ebp - 0xc], 0
push 2
push 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x4050]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x4050]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f672
mov esp, ebp
pop ebp
ret