Function at 0x1004122a
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x600
lea ebp, [esp - 4]
mov eax, dword [0x10083adc]
xor eax, ebp
mov dword [ebp + 0x600], eax
push 0x14
mov eax, 0x1005eed7
call fcn.10046ef2
cmp byte [0x101570e7], 0
jne 0x10041596
mov esi, 0x1ff
push esi
xor edi, edi
lea eax, [ebp + 0x401]
push edi
push eax
mov byte [ebp + 0x400], 0
call fcn.10044b80
push esi
lea eax, [ebp + 1]
push edi
push eax
mov byte [ebp], 0
call fcn.10044b80
add esp, 0x18
cmp dword [0x10153a10], edi
je 0x100412c9
push esi
lea eax, [ebp + 0x201]
push edi
push eax
mov byte [ebp + 0x200], 0
call fcn.10044b80
add esp, 0xc
lea eax, [ebp + 0x200]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x200]
push eax
push str._sTC_LOG
jmp 0x100412d3
push 0x10153e28
push str._sLog
lea eax, [ebp + 0x400]
push eax
call fcn.10044ec8
add esp, 0xc
lea eax, [ebp + 0x400]
push edi
push eax
call fcn.1004803c
pop ecx
pop ecx
test eax, eax
je 0x10041303
push edi
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x1c]
push eax
call fcn.1004532b
lea eax, [ebp - 0x1c]
push eax
call fcn.10045304
mov ebx, eax
mov eax, dword [ebx + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp]
push str._04d
push eax
call fcn.10044ec8
lea eax, [ebp]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10041336
lea edi, [ebp + 0x400]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10041346
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x400]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.1004803c
pop ecx
pop ecx
test eax, eax
je 0x10041381
push 0
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebx + 0x10]
inc eax
push eax
lea eax, [ebp]
push str._02d
push eax
call fcn.10044ec8
lea eax, [ebp]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004139c
lea edi, [ebp + 0x400]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100413ac
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp + 0x400]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.1004803c
pop ecx
pop ecx
test eax, eax
je 0x100413e7
push 0
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebx + 0xc]
lea eax, [ebp]
push dword [0x10184a50]
push 0x10154a28
push str._s__d__02d.txt
push eax
call fcn.10044ec8
lea eax, [ebp]
add esp, 0x14
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004140b
lea edi, [ebp + 0x400]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1004141b
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [ebp + 0x60c], 0x63
rep movsb byte es:[edi], byte [esi]
jne 0x10041457
push 0x10153e28
lea eax, [ebp + 0x400]
push str._sLogSAL_LOG.txt
push eax
call fcn.10044ec8
add esp, 0xc
jmp 0x10041470
cmp dword [ebp + 0x60c], 1
jne 0x10041470
mov esi, str.c:_report.txt
lea edi, [ebp + 0x400]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp + 0x614]
push eax
push dword [ebp + 0x610]
call fcn.10047c8c
add eax, 0x1e
push eax
call fcn.10044f63
add esp, 0xc
push dword [ebx]
mov esi, eax
push dword [ebx + 4]
mov dword [ebp - 0x14], esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._n__08x__02d:_02d:_02d_
push esi
call fcn.10044ec8
lea eax, [ebp + 0x614]
push eax
push dword [ebp + 0x610]
add esi, 0x14
push esi
call fcn.10047c1b
add esp, 0x24
lea eax, [ebp + 0x300]
mov dword [ebp + 0x2fc], eax
push 3
lea eax, [ebp + 0x400]
push eax
lea ecx, [ebp + 0x2fc]
call fcn.1000cc50
xor edi, edi
push edi
mov ebx, 0x80
push ebx
push 4
push edi
push 3
mov esi, 0x40000000
push esi
push dword [ebp + 0x2fc]
mov dword [ebp - 4], edi
call dword [0x101be54c]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x300]
cmp dword [ebp + 0x2fc], eax
je 0x1004152a
push dword [ebp + 0x2fc]
call fcn.100469c3
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1004154d
push edi
push ebx
push 4
push edi
push 3
push esi
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x1004158d
push 2
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10041560
push edi
sub eax, ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [0x101b55f4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.10044ebd
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x600]
xor ecx, ebp
call fcn.10044b6f
add ebp, 0x604
leave
ret