Function at 0x407430
Capabilities:
Create directory

Disassembly:
sub esp, 0x39c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xa1]
mov byte [esp + 0xa0], bl
push 0x414404
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xa4]
push str._sLog
push eax
call fcn.004086ce
add esp, 0xc
lea ecx, [esp + 0xa0]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, str.event.log
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x413238
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xa4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00408984
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x40764d
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x40]
push 0x20
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x18]
push ebx
push eax
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea ecx, [esp + 0x20]
push 0x20
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x68]
push str._s__s
push edx
call fcn.004086ce
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2b9]
mov byte [esp + 0x2b8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x3c0]
add esp, 0x10
cmp eax, 1
jne 0x407599
lea edx, [esp + 0x2a8]
mov edi, 0x415444
jmp 0x4075aa
cmp eax, 2
jne 0x4075c7
lea edx, [esp + 0x2a8]
mov edi, 0x415548
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a5]
mov byte [esp + 0x1a4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x3b4]
lea edx, [esp + 0x1a4]
cmp eax, ebx
mov edi, 0x41564c
jne 0x4075fd
mov edi, 0x415750
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2a8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1a4]
push ecx
push edx
push 0x415340
push eax
push str._s_t_s_t_s__s_n
push ebp
call fcn.00408c50
push ebp
call fcn.004088b7
add esp, 0x1c
call fcn.00407660
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x39c
ret