Function at 0x48e500
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a4ad
mov eax, dword fs:[0]
push eax
mov eax, 0x44cc
call fcn.004ec8a0
mov eax, dword [0x587978]
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 0x48e581
mov dword [ebp - 4], 0xffffffff
xor al, al
jmp 0x48ea7b
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 0x48ea32
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 0x48ea1b
xor esi, esi
mov dword [ebp - 0x4460], esi
jmp 0x48e660
add esi, dword [ebp - 0x44c8]
cmp byte [esi + 0x19], bl
jne 0x48e998
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 0x48e9bc
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.004eafd0
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x218]
push ecx
call edi
push 0x531fd4
lea edx, [ebp - 0x218]
push edx
call edi
mov edi, dword [esi + 0x10]
cmp edi, ebx
jne 0x48e706
xor eax, eax
jmp 0x48e769
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 0x48e72d
cmp eax, 0xffffffff
jbe 0x48e731
xor eax, eax
jmp 0x48e769
cmp esi, 0x400
jg 0x48e751
push esi
call fcn.00408730
add esp, 4
test al, al
je 0x48e751
mov eax, esi
call fcn.004ec120
mov eax, esp
jmp 0x48e75d
push esi
lea ecx, [ebp - 0x4448]
call fcn.004088e0
push 3
shr esi, 1
push esi
push edi
push eax
call fcn.004086c0
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 0x48e798
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x218], cx
cmp word [ebp + eax*2 - 0x218], bx
je 0x48e7aa
inc eax
cmp eax, 0x104
jl 0x48e780
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 0x48e7b0
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.004095e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4444]
cmp dword [eax - 0xc], ebx
jl 0x48e9c4
push 0x53eb20
push eax
call fcn.004ec277
add esp, 8
cmp eax, ebx
je 0x48e9c4
mov ecx, dword [ebp - 0x4444]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x48e9c4
inc eax
mov edx, dword [ecx - 0xc]
js 0x48e8f3
cmp eax, edx
jg 0x48e8f3
lea ecx, [ecx + eax*2]
push 0x531fd4
push ecx
call fcn.004ec277
mov ecx, dword [ebp - 0x4444]
add esp, 8
cmp eax, ebx
je 0x48e8f3
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x48e8f3
inc esi
push esi
lea edx, [ebp - 0x445c]
push edx
lea ecx, [ebp - 0x4444]
call fcn.00411010
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 0x48e8bb
cmp esi, ecx
jg 0x48e8bb
lea ecx, [eax + esi*2]
push 0x531fd4
push ecx
call fcn.004ec277
add esp, 8
cmp eax, ebx
je 0x48e8bb
sub eax, dword [ebp - 0x4444]
sar eax, 1
mov esi, eax
jmp 0x48e8be
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 0x48e8e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x48e863
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 0x48e9cc
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 0x48e9ea
mov ecx, dword [ebp - 0x4468]
cmp ecx, dword [ebp - 0x4458]
jne 0x48e9ea
lea edx, [ebp - 0x4464]
push edx
call fcn.00401030
add esp, 4
test eax, eax
jne 0x48e9d4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4444]
call fcn.004064c0
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 0x48e660
jmp 0x48ea15
mov byte [ebp - 0x443d], bl
jmp 0x48ea15
mov byte [ebp - 0x443d], bl
jmp 0x48e9f0
mov byte [ebp - 0x443d], bl
jmp 0x48e9f0
mov byte [ebp - 0x443d], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4444]
call fcn.004064c0
jmp 0x48ea15
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 0x48ea15
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 0x48ea75
nop
push esi
mov esi, dword [esi]
mov dword [ebp - 0x4448], esi
call fcn.004eaf4a
add esp, 4
cmp esi, ebx
jne 0x48ea60
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.004eaf3b
mov esp, ebp
pop ebp
ret