Function at 0x448f50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500888
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea esi, [ebp - 0x28]
call fcn.004035f0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
test edi, edi
je 0x449002
cmp word [ebx + edi*2 - 2], 0x5c
lea eax, [ebx + edi*2 - 2]
je 0x448fae
cmp eax, ebx
je 0x449002
sub eax, 2
cmp word [eax], 0x5c
jne 0x448fa1
sub eax, ebx
sar eax, 1
test eax, eax
jle 0x449002
lea ecx, [edi - 1]
cmp eax, ecx
jne 0x449002
cmp edi, 3
jne 0x448fcd
cmp word [ebx + 2], 0x3a
je 0x449175
lea edx, [eax + 1]
mov esi, 1
cmp edx, edi
jle 0x448fe1
mov esi, edi
sub esi, eax
test esi, esi
jle 0x449002
lea ecx, [esi + eax]
mov edx, edi
sub edx, ecx
lea edx, [edx + edx + 2]
push edx
lea ecx, [ebx + ecx*2]
push ecx
lea edx, [ebx + eax*2]
push edx
call fcn.004e0a70
add esp, 0xc
sub edi, esi
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x34]
call fcn.00406fd0
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4491c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x449123
test edi, edi
je 0x449281
cmp word [ebx + edi*2 - 2], 0x5c
lea eax, [ebx + edi*2 - 2]
je 0x449061
jmp 0x449050
cmp eax, ebx
je 0x449281
sub eax, 2
cmp word [eax], 0x5c
jne 0x449050
sub eax, ebx
sar eax, 1
mov dword [ebp - 0x18], eax
js 0x449281
test eax, eax
je 0x449281
cmp word [ebx + eax*2 - 2], 0x3a
je 0x44927b
mov ecx, eax
lea esi, [ebp - 0x40]
lea eax, [ebp - 0x28]
call fcn.0041db90
mov edi, eax
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
cmp edi, ecx
je 0x44910b
xor edx, edx
mov word [ebx], dx
mov esi, dword [edi + 4]
inc esi
mov dword [ebp - 0x24], 0
cmp esi, dword [ebp - 0x20]
je 0x4490f0
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e0918
add esp, 4
cmp dword [ebp - 0x20], 0
mov edi, eax
jle 0x4490e0
push ebx
call fcn.004e0a60
add esp, 4
mov ebx, edi
xor eax, eax
mov word [edi], ax
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], esi
mov edx, dword [edi]
mov ecx, ebx
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4490f4
mov ecx, dword [edi + 4]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x40]
push edx
call fcn.004e0a60
mov edi, dword [ebp - 0x24]
add esp, 4
jmp 0x449015
lea esi, [ebp - 0x54]
call fcn.00406150
mov dword [ebp - 0x1c], 0xffffffff
lea edi, [ebp - 0x7c]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00449c80
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x449157
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp - 0x11], 0
jne 0x449192
mov eax, dword [ebp - 0x54]
push eax
call fcn.004e0a60
mov ecx, dword [ebp - 0x34]
add esp, 4
push ecx
call fcn.004e0a60
add esp, 4
push ebx
call fcn.004e0a60
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x5c]
shr edx, 4
test dl, 1
jne 0x4491b2
mov eax, dword [ebp - 0x54]
push eax
call fcn.004e0a60
mov ecx, dword [ebp - 0x34]
add esp, 4
push ecx
jmp 0x449285
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x54]
push edx
call fcn.004e0a60
add esp, 4
lea edi, [ebp - 0x34]
lea eax, [ebp - 0x28]
call fcn.004061d0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x24]
jge 0x44923d
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
lea eax, [edx + ecx*2 + 2]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x4491f8
test cx, cx
je 0x449203
movzx ecx, word [eax + 2]
add eax, 2
cmp ecx, 0x5c
jne 0x4491e7
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp - 0x18], edi
jns 0x44920b
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov edi, edx
mov ecx, edi
lea esi, [ebp - 0x40]
lea eax, [ebp - 0x28]
call fcn.0041db90
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
mov eax, dword [ebp - 0x40]
push eax
setne bl
call fcn.004e0a60
add esp, 4
test bl, bl
je 0x449269
cmp edi, dword [ebp - 0x24]
jl 0x4491d5
mov eax, dword [ebp - 0x34]
push eax
call fcn.004e0a60
mov ecx, dword [ebp - 0x28]
add esp, 4
push ecx
call fcn.004e0a60
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004e0a60
mov edx, dword [ebp - 0x28]
add esp, 4
push edx
jmp 0x44928e
mov edx, dword [ebp - 0x34]
push edx
jmp 0x449285
mov eax, dword [ebp - 0x34]
push eax
call fcn.004e0a60
add esp, 4
push ebx
call fcn.004e0a60
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret