Function at 0x41d370
Capabilities:
Delete directory
Move file

Disassembly:
push 0xffffffffffffffff
push 0x47d68c
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4a3e28]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x260]
mov edi, dword [esp + 0x264]
mov esi, dword [esp + 0x268]
lea edx, [esp + 0x44]
mov dword [esp + 0x24], ebp
mov eax, ebp
sub edx, ebp
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41d3d0
test esi, esi
je 0x41d401
mov eax, esi
lea edx, [eax + 2]
jmp 0x41d3f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d3f0
sub eax, edx
sar eax, 1
jne 0x41d405
lea esi, [esp + 0x44]
push ebp
lea ecx, [esp + 0x18]
call fcn.00401ab0
push 4
push 0x486290
lea ecx, [esp + 0x1c]
mov dword [esp + 0x260], 0
call fcn.004028e0
push 0x483af4
push 0x483aec
lea ecx, [esp + 0x1c]
call fcn.00402510
lea ecx, [esp + 0x2c]
call fcn.0044385a
mov eax, dword [esp + 0x14]
push 0
mov bl, 1
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x260], bl
call fcn.004438f2
test eax, eax
je 0x41d570
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ecx]
lea ecx, [esp + 0x2c]
call fcn.0044353c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], eax
call fcn.0044381b
test eax, eax
jne 0x41d561
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x30]
call eax
test eax, eax
je 0x41d4e1
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call fcn.00443af1
mov eax, dword [eax]
push esi
push edi
push eax
mov byte [esp + 0x264], 2
call fcn.0041d370
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x258], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41d555
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
call fcn.00443af1
push edi
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x260], 3
call fcn.00402510
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x30]
call fcn.00443af1
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push ecx
push eax
call ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d53a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x258], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d561
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0
jne 0x41d470
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
call fcn.00443456
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x258], 0
call fcn.00443883
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x258], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d5bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0045bdbc
add esp, 0x248
ret