Function at 0x10041f45
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x5404]
mov eax, 0x5404
call fcn.10045420
push 0xffffffffffffffff
push 0x1005f404
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x10084adc]
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.10045030
push 0x51ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.10045030
push 0x10154e28
lea eax, [ebp + 0x5200]
push str._sLogMetro
push eax
call fcn.10045378
lea eax, [ebp + 0x5200]
push ebx
push eax
call fcn.100484ec
add esp, 0x2c
test eax, eax
je 0x10041ffb
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.10045378
lea eax, [ebp]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10042012
lea edi, [ebp + 0x5200]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10042022
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 [0x1018902c]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x118]
cmp dword [ebp - 0x11c], eax
je 0x10042087
push dword [ebp - 0x11c]
call fcn.10046e73
pop ecx
test dword [0x10078cd0], 0x10000000
mov edi, 0x40000000
je 0x10042147
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 [0x101bf550]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x118]
cmp dword [ebp - 0x11c], eax
je 0x100420fd
push dword [ebp - 0x11c]
call fcn.10046e73
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10042120
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 0x10042147
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 0x10042178
cmp dword [0x1015668c], ebx
je 0x100422ae
push esi
push dword [ebp - 0x18]
lea eax, [ebp + 0x5200]
push eax
push str.MySetRegUserStrMetro_Real_DeleteFileW__s___s___s_
push ebx
call fcn.100412e2
add esp, 0x14
jmp 0x100422ae
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1004217d
sub eax, edx
cmp eax, 1
jbe 0x100421b2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10042190
sub eax, edx
cmp byte [eax + esi - 1], 0xa
jne 0x100421b2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100421a5
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 0x100421b7
sub eax, edx
cmp eax, 1
jbe 0x100421ec
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100421ca
sub eax, edx
cmp byte [eax + esi - 1], 0xd
jne 0x100421ec
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100421df
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 [0x101bf550]
or dword [ebp - 4], 0xffffffff
mov esi, eax
lea eax, [ebp - 0x118]
cmp dword [ebp - 0x11c], eax
je 0x1004224b
push dword [ebp - 0x11c]
call fcn.10046e73
pop ecx
cmp esi, 0xffffffff
jne 0x10042270
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 0x100422ae
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 0x10042280
push ebx
lea ecx, [ebp - 0x18]
push ecx
sub eax, edi
push eax
push dword [ebp - 0x14]
push esi
call dword [0x101b65f8]
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.1004501f
add ebp, 0x5404
leave
ret