Function at 0x46d330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c858
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x572bb0]
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 - 0x54]
call fcn.004540a0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
test ebx, ebx
je 0x46d3c2
lea ecx, [ebx - 1]
cmp word [edi + ecx*2], 0x5c
lea ecx, [edi + ecx*2]
je 0x46d38f
cmp ecx, edi
je 0x46d3c2
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x46d382
sub ecx, edi
sar ecx, 1
test ecx, ecx
jle 0x46d3c2
lea eax, [ebx - 1]
cmp ecx, eax
jne 0x46d3c2
cmp ebx, 3
jne 0x46d3b1
cmp word [edi + 2], 0x3a
jne 0x46d3b1
mov bl, 1
jmp 0x46d5d8
push 1
push ecx
lea ecx, [ebp - 0x54]
call fcn.004617d0
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x74]
call fcn.00454150
mov byte [ebp - 4], 1
mov esi, ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46d553
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46d4dd
test ebx, ebx
je 0x46d5ff
lea esi, [ebx - 1]
cmp word [edi + esi*2], 0x5c
lea esi, [edi + esi*2]
je 0x46d421
jmp 0x46d410
cmp esi, edi
je 0x46d5ff
sub esi, 2
cmp word [esi], 0x5c
jne 0x46d410
sub esi, edi
sar esi, 1
js 0x46d5ff
test esi, esi
je 0x46d5ff
cmp word [edi + esi*2 - 2], 0x3a
je 0x46d5ff
push esi
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x54]
call fcn.0045a990
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
cmp eax, ecx
je 0x46d4c9
xor ecx, ecx
mov dword [ebp - 0x50], 0
mov word [edi], cx
mov ebx, dword [eax + 4]
inc ebx
cmp ebx, dword [ebp - 0x4c]
je 0x46d4aa
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e991c
add esp, 4
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x4c], 0
jle 0x46d49d
push edi
call fcn.004e98a6
mov eax, dword [ebp - 0x58]
add esp, 4
mov edi, eax
mov dword [ebp - 0x4c], ebx
xor ecx, ecx
mov dword [ebp - 0x54], edi
mov word [eax], cx
mov ebx, dword [ebp - 0x5c]
mov edx, edi
mov ecx, dword [ebx]
movzx eax, word [ecx]
lea edx, [edx + 2]
mov word [edx - 2], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x46d4b1
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x68]
call fcn.004e98a6
add esp, 4
jmp 0x46d3d4
lea ecx, [ebp - 0x20]
call fcn.00454020
mov dword [ebp - 0x58], 0xffffffff
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
push edi
lea ecx, [ebp - 0x58]
call fcn.0046d750
mov bl, al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x58]
cmp eax, 0xffffffff
je 0x46d512
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x46d528
push dword [ebp - 0x20]
mov bl, 1
call fcn.004e98a6
add esp, 4
jmp 0x46d5cd
mov eax, dword [ebp - 0x28]
shr eax, 4
test al, 1
jne 0x46d544
push dword [ebp - 0x20]
xor bl, bl
call fcn.004e98a6
add esp, 4
jmp 0x46d5cd
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call fcn.004e98a6
add esp, 4
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x54]
call fcn.004542b0
mov ecx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
cmp esi, ecx
jge 0x46d5cb
lea esp, [esp]
lea esi, [esi + 1]
movzx eax, word [edi + esi*2]
lea esi, [edi + esi*2]
cmp eax, 0x5c
je 0x46d591
nop
test ax, ax
je 0x46d597
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x5c
jne 0x46d580
sub esi, edi
sar esi, 1
jns 0x46d599
mov esi, ecx
push esi
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x54]
call fcn.0045a990
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x68]
test eax, eax
setne bl
call fcn.004e98a6
add esp, 4
test bl, bl
je 0x46d5ff
mov ecx, dword [ebp - 0x50]
cmp esi, ecx
jl 0x46d570
mov bl, 1
push dword [ebp - 0x74]
call fcn.004e98a6
add esp, 4
push edi
call fcn.004e98a6
add esp, 4
mov al, bl
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.004e94b7
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x46d5cd