Function at 0x4050d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cca5
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x45c00c]
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
mov edi, ecx
mov dword [ebp - 0x68], edi
mov eax, dword [ebp + 8]
xor cl, cl
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
cmp dword [eax + 4], 0
je 0x405134
mov eax, dword [eax]
mov eax, dword [eax]
cmp dword [eax + 4], 0
je 0x405132
mov edx, dword [eax]
movzx eax, word [edx]
or eax, 0x20
sub eax, 0x61
cmp eax, 0x19
ja 0x405134
cmp word [edx + 2], 0x3a
jne 0x405134
mov cl, 1
cmp dword [edi + 0x44], 3
mov edx, 2
jne 0x405153
test cl, cl
je 0x405153
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebx + 4], 0
mov word [eax], cx
jmp 0x4051a3
lea eax, [edi + 0x5c]
cmp eax, ebx
je 0x4051a3
mov eax, dword [eax + 4]
mov dword [ebp - 0x60], eax
cmp eax, dword [ebx + 8]
jbe 0x40518b
xor ecx, ecx
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
push dword [ebx]
mov esi, eax
call fcn.00449b03
mov eax, dword [ebp - 0x60]
add esp, 8
mov dword [ebx], esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
lea eax, [eax*2 + 2]
push eax
push dword [edi + 0x5c]
push dword [ebx]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x5c]
xor esi, esi
mov dword [ebp - 0x64], esi
cmp dword [edx + 4], esi
jbe 0x4053a4
test esi, esi
je 0x4051e5
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 4]
jne 0x4051ca
mov ecx, ebx
call fcn.00421600
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebx + 4]
mov edi, 0x5c
mov eax, dword [ebx]
mov word [eax + ecx*2], di
inc ecx
xor edi, edi
mov word [eax + ecx*2], di
mov edi, dword [ebp - 0x68]
mov dword [ebx + 4], ecx
mov eax, dword [edx]
mov ecx, ebx
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x60], eax
push dword [eax + 4]
call fcn.00421690
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x60]
lea ecx, [eax + ecx*2]
mov eax, dword [edx + 4]
lea eax, [eax*2 + 2]
push eax
push dword [edx]
push ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x60]
add esp, 0xc
mov eax, dword [edx + 4]
add dword [ebx + 4], eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 4]
dec eax
cmp esi, eax
jne 0x405239
cmp byte [edi + 0x8c], 0
je 0x405239
mov cl, 1
jmp 0x40523b
xor cl, cl
cmp dword [ebx + 4], 0
mov byte [ebp - 0x55], cl
jne 0x405255
test cl, cl
je 0x405394
mov byte [edi + 0x3a], 1
jmp 0x405394
cmp dword [edi + 0x44], 3
jne 0x40528d
test esi, esi
jne 0x40528d
cmp dword [edx + 4], 2
jne 0x40528d
mov edx, dword [edx]
movzx eax, word [edx]
or eax, 0x20
sub eax, 0x61
cmp eax, 0x19
ja 0x40528d
cmp word [edx + 2], 0x3a
jne 0x40528d
test cl, cl
je 0x405394
mov byte [edi + 0x3a], 1
jmp 0x405394
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp byte [ebp - 0x55], 0
je 0x405394
mov esi, dword [ebx]
lea ecx, [ebp - 0x54]
call fcn.00404410
push 0
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0
call fcn.00423940
test al, al
je 0x4052cf
mov eax, dword [ebp - 0x34]
shr eax, 4
mov byte [ebp - 0x55], 1
test al, 1
jne 0x4052d3
mov byte [ebp - 0x55], 0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x2c]
call fcn.00449b03
add esp, 4
cmp byte [ebp - 0x55], 0
jne 0x405391
xor eax, eax
mov byte [edi + 0x3a], 1
mov dword [ebp - 0x1c], eax
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
inc esi
cmp byte [esi + str.Cannot_create_folder], al
jne 0x405300
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449b46
add esp, 4
mov dword [ebp - 0x18], esi
mov edx, eax
mov dword [ebp - 0x14], esi
xor ecx, ecx
mov dword [ebp - 0x1c], edx
test esi, esi
je 0x405350
jmp 0x405340
movzx eax, byte [ecx + str.Cannot_create_folder]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x405340
xor eax, eax
mov word [edx + esi*2], ax
mov edx, ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004054a0
mov ecx, dword [edi + 0x50]
mov edi, dword [ebp - 0x1c]
push edi
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x4502ac]
call esi
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00449b03
mov edi, dword [ebp - 0x68]
add esp, 4
mov esi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x5c]
inc esi
mov dword [ebp - 0x64], esi
cmp esi, dword [edx + 4]
jb 0x4051b4
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.00449a40
mov esp, ebp
pop ebp
ret 8