Function at 0x408c90
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
mov eax, dword [ecx + 0x31e0]
add eax, 0xfffffffc
cmp eax, 6
ja case.default.0x408c9e
jmp dword [eax*4 + 0x408cf0]
mov eax, 0x190
ret
jmp 0x40cb00
push esi
mov esi, ecx
call fcn.0040cc60
pop esi
ret
push 0
push ecx
call fcn.0040cf60
ret
push 1
push ecx
call fcn.0040cf60
ret
jmp 0x40ce50
push ecx
call fcn.0040c0d0
ret
mov eax, dword [ecx + 0x3200]
test eax, eax
push ecx
je 0x408ce9
call fcn.0040b360
ret
call fcn.0040a800
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x531d20
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + 0x68]
test ecx, ecx
jne 0x40cb3a
mov eax, 0x193
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
add esi, 0x11b5
push esi
lea eax, [esp + 0x10]
push 0x58d23c
push eax
mov dword [esp + 0x24], 0
call fcn.00406c70
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.004038f0
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
push esi
je 0x40cbee
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
je 0x40cc29
lea eax, [esi - 0x10]
mov dword [esp + 0x18], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40cbd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, 0xcc
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x40cc29
lea eax, [esi - 0x10]
mov dword [esp + 0x18], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40cbd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, 0xcc
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea eax, [esi - 0x10]
mov dword [esp + 0x18], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40cc44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 0x1a7
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x531d20
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
mov ecx, dword [eax + 0x68]
test ecx, ecx
jne 0x40ce8a
mov eax, 0x193
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
call fcn.0051ffd3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
add esi, 0x11b5
push esi
lea eax, [esp + 0x10]
push 0x58d23c
push eax
mov dword [esp + 0x24], 0
call fcn.00406c70
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.004038f0
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cef3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x18], edi
lea ecx, [eax + 0xc]
je 0x40cf35
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40cf1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, 0xc9
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40cf46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 0x199
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret