Function at 0x539be0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609f88
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x65e374]
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 dword [ebp - 4], 0
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x539c54
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov byte [ebp - 0x41], 1
cmp ebx, 0x10
jb 0x539ec7
inc ebx
mov eax, edi
cmp ebx, 0x1000
jb 0x539ebd
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x539ee6
jmp 0x539ebd
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x10
mov edi, dword [ebp + 8]
cmovae eax, edi
nop dword [eax]
cmp ebx, 0x10
lea ecx, [ebp + 8]
cmovae ecx, edi
add ecx, esi
cmp eax, ecx
je 0x539ca3
cmp byte [eax], 0x5c
jne 0x539ca0
mov byte [eax], 0x2f
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
inc eax
jmp 0x539c80
lea ecx, [esi - 1]
cmp esi, ecx
jbe 0x539eeb
cmp ebx, 0x10
lea eax, [ebp + 8]
cmovae eax, edi
cmp byte [eax + ecx], 0x2f
je 0x539d07
mov eax, ebx
sub eax, esi
push 1
push 0x62ec9c
cmp eax, 1
jb 0x539ced
lea eax, [esi + 1]
cmp ebx, 0x10
mov dword [ebp + 0x18], eax
lea eax, [ebp + 8]
cmovae eax, edi
add esi, eax
push esi
call fcn.005d0030
add esp, 0xc
mov byte [esi + 1], 0
jmp 0x539cfe
mov byte [ebp - 0x48], 0
lea ecx, [ebp + 8]
push dword [ebp - 0x48]
push 1
call fcn.004039b0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x10
lea eax, [ebp + 8]
cmovae eax, edi
mov dword [ebp - 0x48], eax
test esi, esi
je 0x539d2c
push esi
push 0x2f
push eax
call fcn.005d0720
add esp, 0xc
test eax, eax
je 0x539d2c
sub eax, dword [ebp - 0x48]
jmp 0x539d2f
or eax, 0xffffffff
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
je 0x539c1f
nop dword [eax + eax]
cmp esi, eax
mov dword [ebp - 0x18], 0
mov ecx, eax
mov dword [ebp - 0x14], 0xf
cmovb ecx, esi
mov byte [ebp - 0x28], 0
cmp ebx, 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, edi
lea ecx, [ebp - 0x28]
push eax
call fcn.00403030
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0
jbe 0x539ded
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x60]
call fcn.00405df0
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov edx, dword [ebp - 0x4c]
test eax, eax
setne bl
cmp edx, 0x10
jb 0x539dcd
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x539dc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x539ef0
push edx
push ecx
call fcn.005b8996
add esp, 8
test bl, bl
jne 0x539ded
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x539e7e
mov edx, dword [ebp - 0x48]
lea ecx, [ebp + 8]
mov ebx, dword [ebp + 0x1c]
inc edx
mov edi, dword [ebp + 8]
cmp ebx, 0x10
mov esi, dword [ebp + 0x18]
cmovae ecx, edi
mov dword [ebp - 0x48], ecx
cmp edx, esi
jae 0x539e26
mov eax, esi
sub eax, edx
push eax
lea eax, [ecx + edx]
push 0x2f
push eax
call fcn.005d0720
add esp, 0xc
test eax, eax
je 0x539e26
sub eax, dword [ebp - 0x48]
jmp 0x539e29
or eax, 0xffffffff
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
cmp edx, 0x10
jb 0x539e6d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x539e5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x539ef0
push edx
push ecx
call fcn.005b8996
mov ebx, dword [ebp + 0x1c]
add esp, 8
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x48]
cmp eax, 0xffffffff
jne 0x539d40
jmp 0x539c1f
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x539eae
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x539ea4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x539ef0
push edx
push ecx
call fcn.005b8996
add esp, 8
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov byte [ebp - 0x41], 0
jmp 0x539c23
push ebx
push edi
call fcn.005b8996
add esp, 8
mov al, byte [ebp - 0x41]
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.005b8427
mov esp, ebp
pop ebp
ret
call fcn.005d36fe
call fcn.00404b20
call fcn.005d36fe
int3