Function at 0x1003ec56
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x5404]
mov eax, 0x5404
call fcn.10040c40
push 0xffffffffffffffff
push 0x1005ac14
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x10074bac]
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 esi, dword [ebp + 0x540c]
mov ebx, dword [ebp + 0x5410]
push 0x1ff
xor edi, edi
lea eax, [ebp + 0x5201]
push edi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x5200], 0
call fcn.10040850
push 0x51ff
lea eax, [ebp + 1]
push edi
push eax
mov byte [ebp], 0
call fcn.10040850
push 0x10142048
lea eax, [ebp + 0x5200]
push str._sLogMetro
push eax
call fcn.10040b98
lea eax, [ebp + 0x5200]
push edi
push eax
call fcn.10043bc5
add esp, 0x2c
test eax, eax
je 0x1003ed0e
push edi
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.10040b98
lea eax, [ebp]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003ed25
lea edi, [ebp + 0x5200]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1003ed35
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x114]
and ecx, 3
mov dword [ebp - 0x118], eax
push 3
lea eax, [ebp + 0x5200]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x118]
call fcn.1000c23e
push dword [ebp - 0x118]
xor esi, esi
mov dword [ebp - 4], esi
call dword [0x10171a14]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x1003ed9c
push dword [ebp - 0x118]
call fcn.100425b3
pop ecx
cmp byte [ebx], 0
jne 0x1003edcb
cmp dword [0x101434ac], esi
je 0x1003ef04
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 0x5200]
push eax
push str.MySetRegUserStrMetro_Real_DeleteFileW__s___s___s_
push esi
call fcn.1003dfed
add esp, 0x14
jmp 0x1003ef04
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003edd0
xor edi, edi
sub eax, edx
inc edi
cmp eax, edi
jbe 0x1003ee07
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003ede5
sub eax, edx
cmp byte [eax + ebx - 1], 0xa
jne 0x1003ee07
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003edfa
sub eax, edx
mov byte [eax + ebx - 1], cl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003ee0c
sub eax, edx
cmp eax, edi
jbe 0x1003ee40
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003ee1e
sub eax, edx
cmp byte [eax + ebx - 1], 0xd
jne 0x1003ee40
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003ee33
sub eax, edx
mov byte [eax + ebx - 1], cl
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], eax
push 3
lea eax, [ebp + 0x5200]
push eax
lea ecx, [ebp - 0x118]
call fcn.1000c23e
push esi
mov dword [ebp - 4], edi
mov edi, 0x80
push edi
push 4
push esi
push 3
mov esi, 0x40000000
push esi
push dword [ebp - 0x118]
call dword [0x101a7f1c]
or dword [ebp - 4], 0xffffffff
mov ebx, eax
lea eax, [ebp - 0x114]
cmp dword [ebp - 0x118], eax
je 0x1003eea1
push dword [ebp - 0x118]
call fcn.100425b3
pop ecx
cmp ebx, 0xffffffff
jne 0x1003eec4
push 0
push edi
push 4
push 0
push 3
push esi
lea eax, [ebp + 0x5200]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003ef04
xor esi, esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x14]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1003eed6
push esi
lea ecx, [ebp - 0x10]
push ecx
sub eax, edi
push eax
push dword [ebp - 0x14]
push ebx
call dword [0x1019efd0]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
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.1004083f
add ebp, 0x5404
leave
ret