Function at 0x48fb60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e098d
mov eax, dword fs:[0]
push eax
mov eax, 0x44cc
call fcn.004ac400
mov eax, dword [0x52de08]
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, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x4480], edi
xor ebx, ebx
mov dword [ebp - 0x4448], esi
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x10000000
push eax
mov byte [ebp - 0x443d], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4488], eax
cmp eax, ebx
jne 0x48fbe1
mov dword [ebp - 4], 0xffffffff
xor al, al
jmp 0x4900db
lea eax, [ebp - 0x4490]
push eax
call fcn.00401240
lea ecx, [ebp - 0x443c]
push ebx
push ecx
call fcn.00403b50
lea eax, [ebp - 0x443c]
lea edx, [ebp - 0x4490]
push eax
mov dword [ebp - 0x442c], edx
call fcn.00403b80
add esp, 0x10
mov dword [ebp - 0x4454], 0x401000
mov dword [ebp - 0x4450], 0x401020
mov dword [ebp - 0x447c], 0x401000
mov dword [ebp - 0x4478], 0x401020
call fcn.00403890
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x44d8]
push ecx
call fcn.00401260
lea edx, [ebp - 0x447c]
push edx
lea eax, [ebp - 0x4454]
push eax
lea ecx, [ebp - 0x443c]
push ecx
lea edx, [ebp - 0x44d8]
push edx
call fcn.00403630
add esp, 0x14
test eax, eax
jne 0x490092
mov dword [ebp - 0x4474], 0xffffffff
mov dword [ebp - 0x444c], ebx
mov dword [ebp - 0x4470], ebx
mov dword [ebp - 0x446c], eax
cmp dword [ebp - 0x44bc], ebx
jbe 0x49007b
xor esi, esi
mov dword [ebp - 0x4460], esi
jmp 0x48fcc0
add esi, dword [ebp - 0x44c8]
cmp byte [esi + 0x19], bl
jne 0x48fff8
lea edx, [ebp - 0x447c]
push edx
lea ecx, [ebp - 0x4454]
push ecx
lea edx, [ebp - 0x4458]
push edx
lea ecx, [ebp - 0x4484]
push ecx
lea edx, [ebp - 0x4470]
push edx
lea ecx, [ebp - 0x444c]
push ecx
lea edx, [ebp - 0x4474]
push edx
push eax
lea eax, [ebp - 0x443c]
push eax
lea ecx, [ebp - 0x44d8]
push ecx
call fcn.00403670
add esp, 0x28
test eax, eax
jne 0x49001c
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.004aab30
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x218]
push ecx
call edi
push 0x4e82cc
lea edx, [ebp - 0x218]
push edx
call edi
mov edi, dword [esi + 0x10]
cmp edi, ebx
jne 0x48fd66
xor eax, eax
jmp 0x48fdc9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cdq
mov esi, eax
shld edx, esi, 1
add esi, esi
mov eax, esi
add eax, 0x80000000
adc edx, ebx
mov dword [ebp - 0x4494], edx
jne 0x48fd8d
cmp eax, 0xffffffff
jbe 0x48fd91
xor eax, eax
jmp 0x48fdc9
cmp esi, 0x400
jg 0x48fdb1
push esi
call fcn.00408750
add esp, 4
test al, al
je 0x48fdb1
mov eax, esi
call fcn.004abc80
mov eax, esp
jmp 0x48fdbd
push esi
lea ecx, [ebp - 0x4448]
call fcn.00408900
push 3
shr esi, 1
push esi
push edi
push eax
call fcn.004086e0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
lea esp, [esp]
cmp word [ebp + eax*2 - 0x218], 0x2f
jne 0x48fdf8
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x218], cx
cmp word [ebp + eax*2 - 0x218], bx
je 0x48fe0a
inc eax
cmp eax, 0x104
jl 0x48fde0
xor eax, eax
lea esp, [esp]
movzx ecx, word [ebp + eax - 0x218]
mov word [ebp + eax - 0x420], cx
add eax, 2
cmp cx, bx
jne 0x48fe10
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x4444]
call fcn.00409830
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4444]
cmp dword [eax - 0xc], ebx
jl 0x490024
push 0x4f4bc8
push eax
call fcn.004abdd7
add esp, 8
cmp eax, ebx
je 0x490024
mov ecx, dword [ebp - 0x4444]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x490024
inc eax
mov edx, dword [ecx - 0xc]
js 0x48ff53
cmp eax, edx
jg 0x48ff53
lea ecx, [ecx + eax*2]
push 0x4e82cc
push ecx
call fcn.004abdd7
mov ecx, dword [ebp - 0x4444]
add esp, 8
cmp eax, ebx
je 0x48ff53
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x48ff53
inc esi
push esi
lea edx, [ebp - 0x445c]
push edx
lea ecx, [ebp - 0x4444]
call fcn.004121e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x445c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x4444]
mov ecx, dword [eax - 0xc]
cmp esi, ebx
jl 0x48ff1b
cmp esi, ecx
jg 0x48ff1b
lea ecx, [eax + esi*2]
push 0x4e82cc
push ecx
call fcn.004abdd7
add esp, 8
cmp eax, ebx
je 0x48ff1b
sub eax, dword [ebp - 0x4444]
sar eax, 1
mov esi, eax
jmp 0x48ff1e
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x445c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48ff44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x48fec3
mov ecx, dword [ebp - 0x4444]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push 0x80
push 2
push ebx
push 3
push 0x10000000
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4464], eax
cmp eax, ebx
je 0x49002c
mov edx, dword [ebp - 0x4458]
mov dword [ebp - 0x4468], edx
mov edx, dword [ebp - 0x4484]
add edx, dword [ebp - 0x444c]
lea eax, [ebp - 0x4468]
push eax
push edx
lea eax, [ebp - 0x4464]
push eax
call fcn.004010e0
add esp, 0xc
test eax, eax
jne 0x49004a
mov ecx, dword [ebp - 0x4468]
cmp ecx, dword [ebp - 0x4458]
jne 0x49004a
lea edx, [ebp - 0x4464]
push edx
call fcn.00401030
add esp, 4
test eax, eax
jne 0x490034
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4444]
call fcn.00406650
mov edi, dword [ebp - 0x4480]
mov eax, dword [ebp - 0x446c]
mov esi, dword [ebp - 0x4460]
inc eax
add esi, 0x20
mov dword [ebp - 0x446c], eax
mov dword [ebp - 0x4460], esi
cmp eax, dword [ebp - 0x44bc]
jb 0x48fcc0
jmp 0x490075
mov byte [ebp - 0x443d], bl
jmp 0x490075
mov byte [ebp - 0x443d], bl
jmp 0x490050
mov byte [ebp - 0x443d], bl
jmp 0x490050
mov byte [ebp - 0x443d], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4444]
call fcn.00406650
jmp 0x490075
mov byte [ebp - 0x443d], bl
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x4444]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x490075
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x4448]
mov ecx, dword [ebp - 0x444c]
push ecx
lea edx, [ebp - 0x4454]
push edx
call dword [ebp - 0x4450]
add esp, 8
lea eax, [ebp - 0x4454]
push eax
lea ecx, [ebp - 0x44d8]
push ecx
call fcn.00401290
lea edx, [ebp - 0x4488]
push edx
call fcn.00401030
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4900d5
nop
push esi
mov esi, dword [esi]
mov dword [ebp - 0x4448], esi
call fcn.004aaaaa
add esp, 4
cmp esi, ebx
jne 0x4900c0
mov al, byte [ebp - 0x443d]
lea esp, [ebp - 0x44e8]
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.004aaa9b
mov esp, ebp
pop ebp
ret