Function at 0x4c48a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f534d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402cf0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x18]
lea esi, [ebx - 1]
cmp ebx, esi
jbe 0x4c4ad5
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edx, 0x10
cmovae eax, ecx
cmp byte [eax + esi], 0x5c
je 0x4c4916
push 1
push 0x4ff3fc
lea ecx, [ebp - 0x28]
call fcn.0040b830
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x54], 0
xor edi, edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
xor esi, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x48], eax
test ebx, ebx
je 0x4c49bf
cmp ebx, esi
jbe 0x4c4ad5
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, ecx
cmp byte [eax + esi], 0x5c
je 0x4c4976
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, ecx
lea ecx, [ebp - 0x40]
movzx eax, byte [eax + esi]
push eax
call fcn.0040b720
jmp 0x4c49af
lea eax, [ebp - 0x40]
push eax
cmp edi, dword [ebp - 0x44]
je 0x4c498e
mov ecx, edi
call fcn.00402cf0
add edi, 0x18
mov dword [ebp - 0x50], edi
jmp 0x4c49a0
push edi
lea ecx, [ebp - 0x54]
call fcn.004c4ee0
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
push 1
push 0x4ff3fc
lea ecx, [ebp - 0x40]
call fcn.0040b830
mov ecx, dword [ebp - 0x28]
inc esi
mov edx, dword [ebp - 0x14]
cmp esi, ebx
jb 0x4c4947
mov ebx, dword [ebp - 0x54]
jmp 0x4c49c1
xor ebx, ebx
mov esi, ebx
cmp esi, edi
je 0x4c49e5
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4c49d1
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esi, 0x18
cmp esi, edi
jne 0x4c49c7
test eax, eax
jne 0x4c49f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c49f9
mov dword [ebp - 0x48], 1
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4c4a2d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c4a23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c4aa6
push edx
push ecx
call fcn.004f1f95
add esp, 8
test ebx, ebx
je 0x4c4a7e
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00404620
mov ecx, dword [ebp - 0x44]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x4c4a74
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c4aa6
push ecx
push ebx
call fcn.004f1f95
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4c4ab6
mov ecx, dword [ebp - 0x28]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c4aac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4c4aac
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
mov al, byte [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret
call fcn.0040ba00
int3