Function at 0x10041e8d
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x5404]
mov eax, 0x5404
call fcn.10044f70
push 0xffffffffffffffff
push 0x1005ef54
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x10083adc]
xor eax, ebp
mov dword [ebp + 0x5400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x5410]
mov esi, dword [ebp + 0x540c]
xor ebx, ebx
push 0x1ff
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x5201]
push ebx
push eax
mov dword [ebp - 0x18], esi
mov byte [ebp + 0x5200], bl
call fcn.10044b80
push 0x51ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.10044b80
push 0x10153e28
lea eax, [ebp + 0x5200]
push str._sLogMetro
push eax
call fcn.10044ec8
lea eax, [ebp + 0x5200]
push ebx
push eax
call fcn.1004803c
add esp, 0x2c
test eax, eax
je 0x10041f43
push ebx
lea eax, [ebp + 0x5200]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
lea eax, [ebp]
push str._s.txt
push eax
call fcn.10044ec8
lea eax, [ebp]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10041f5a
lea edi, [ebp + 0x5200]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10041f6a
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x118]
and ecx, 3
mov dword [ebp - 0x11c], eax
push 3
lea eax, [ebp + 0x5200]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x11c]
call fcn.1000cc50
push dword [ebp - 0x11c]
mov dword [ebp - 4], ebx
call dword [0x10188028]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x118]
cmp dword [ebp - 0x11c], eax
je 0x10041fcf
push dword [ebp - 0x11c]
call fcn.100469c3
pop ecx
test dword [0x10077cd0], 0x10000000
mov edi, 0x40000000
je 0x1004208f
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], eax
push 3
lea eax, [ebp + 0x5200]
push eax
lea ecx, [ebp - 0x11c]
call fcn.1000cc50
push ebx
mov esi, 0x80
push esi
push 4
push ebx
push 3
push edi
push dword [ebp - 0x11c]
mov dword [ebp - 4], 1
call dword [0x101be54c]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x118]
cmp dword [ebp - 0x11c], eax
je 0x10042045
push dword [ebp - 0x11c]
call fcn.100469c3
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10042068
push ebx
push esi
push 4
push ebx
push 3
push edi
lea eax, [ebp + 0x5200]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x1004208f
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
cmp byte [esi], bl
jne 0x100420c0
cmp dword [0x1015568c], ebx
je 0x100421f6
push esi
push dword [ebp - 0x18]
lea eax, [ebp + 0x5200]
push eax
push str.MySetRegUserStrMetro_Real_DeleteFileW__s___s___s_
push ebx
call fcn.1004122a
add esp, 0x14
jmp 0x100421f6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100420c5
sub eax, edx
cmp eax, 1
jbe 0x100420fa
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100420d8
sub eax, edx
cmp byte [eax + esi - 1], 0xa
jne 0x100420fa
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100420ed
sub eax, edx
mov byte [eax + esi - 1], bl
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100420ff
sub eax, edx
cmp eax, 1
jbe 0x10042134
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10042112
sub eax, edx
cmp byte [eax + esi - 1], 0xd
jne 0x10042134
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10042127
sub eax, edx
mov byte [eax + esi - 1], bl
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], eax
push 3
lea eax, [ebp + 0x5200]
push eax
lea ecx, [ebp - 0x11c]
call fcn.1000cc50
push ebx
push 0x80
push 4
push ebx
push 3
push edi
push dword [ebp - 0x11c]
mov dword [ebp - 4], 2
call dword [0x101be54c]
or dword [ebp - 4], 0xffffffff
mov esi, eax
lea eax, [ebp - 0x118]
cmp dword [ebp - 0x11c], eax
je 0x10042193
push dword [ebp - 0x11c]
call fcn.100469c3
pop ecx
cmp esi, 0xffffffff
jne 0x100421b8
push ebx
push 0x80
push 4
push ebx
push 3
push edi
lea eax, [ebp + 0x5200]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100421f6
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x14]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100421c8
push ebx
lea ecx, [ebp - 0x18]
push ecx
sub eax, edi
push eax
push dword [ebp - 0x14]
push esi
call dword [0x101b55f4]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5400]
xor ecx, ebp
call fcn.10044b6f
add ebp, 0x5404
leave
ret