Function at 0x48e8d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a6ed
mov eax, dword fs:[0]
push eax
mov eax, 0x44cc
call fcn.004ecad0
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 0x48e951
mov dword [ebp - 4], 0xffffffff
xor al, al
jmp 0x48ee4b
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 0x48ee02
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 0x48edeb
xor esi, esi
mov dword [ebp - 0x4460], esi
jmp 0x48ea30
add esi, dword [ebp - 0x44c8]
cmp byte [esi + 0x19], bl
jne 0x48ed68
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 0x48ed8c
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.004eb200
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 0x48ead6
xor eax, eax
jmp 0x48eb39
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 0x48eafd
cmp eax, 0xffffffff
jbe 0x48eb01
xor eax, eax
jmp 0x48eb39
cmp esi, 0x400
jg 0x48eb21
push esi
call fcn.00408680
add esp, 4
test al, al
je 0x48eb21
mov eax, esi
call fcn.004ec350
mov eax, esp
jmp 0x48eb2d
push esi
lea ecx, [ebp - 0x4448]
call fcn.00408830
push 3
shr esi, 1
push esi
push edi
push eax
call fcn.00408640
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 0x48eb68
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x218], cx
cmp word [ebp + eax*2 - 0x218], bx
je 0x48eb7a
inc eax
cmp eax, 0x104
jl 0x48eb50
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 0x48eb80
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.00409590
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4444]
cmp dword [eax - 0xc], ebx
jl 0x48ed94
push 0x53eb20
push eax
call fcn.004ec4a7
add esp, 8
cmp eax, ebx
je 0x48ed94
mov ecx, dword [ebp - 0x4444]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x48ed94
inc eax
mov edx, dword [ecx - 0xc]
js 0x48ecc3
cmp eax, edx
jg 0x48ecc3
lea ecx, [ecx + eax*2]
push 0x531fd4
push ecx
call fcn.004ec4a7
mov ecx, dword [ebp - 0x4444]
add esp, 8
cmp eax, ebx
je 0x48ecc3
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x48ecc3
inc esi
push esi
lea edx, [ebp - 0x445c]
push edx
lea ecx, [ebp - 0x4444]
call fcn.004112f0
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 0x48ec8b
cmp esi, ecx
jg 0x48ec8b
lea ecx, [eax + esi*2]
push 0x531fd4
push ecx
call fcn.004ec4a7
add esp, 8
cmp eax, ebx
je 0x48ec8b
sub eax, dword [ebp - 0x4444]
sar eax, 1
mov esi, eax
jmp 0x48ec8e
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 0x48ecb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x48ec33
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 0x48ed9c
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 0x48edba
mov ecx, dword [ebp - 0x4468]
cmp ecx, dword [ebp - 0x4458]
jne 0x48edba
lea edx, [ebp - 0x4464]
push edx
call fcn.00401030
add esp, 4
test eax, eax
jne 0x48eda4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4444]
call fcn.00406ef0
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 0x48ea30
jmp 0x48ede5
mov byte [ebp - 0x443d], bl
jmp 0x48ede5
mov byte [ebp - 0x443d], bl
jmp 0x48edc0
mov byte [ebp - 0x443d], bl
jmp 0x48edc0
mov byte [ebp - 0x443d], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4444]
call fcn.00406ef0
jmp 0x48ede5
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 0x48ede5
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 0x48ee45
nop
push esi
mov esi, dword [esi]
mov dword [ebp - 0x4448], esi
call fcn.004eb17a
add esp, 4
cmp esi, ebx
jne 0x48ee30
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.004eb16b
mov esp, ebp
pop ebp
ret