Function at 0x41d850
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546637
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x5ec938]
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 eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x438], ebx
cmp eax, 0x11
jne 0x41dd44
xor eax, eax
lea ecx, [ebp - 0x45c]
mov dword [0x5ee168], eax
mov dword [0x5ee164], eax
call fcn.00438f15
mov ecx, dword [ebp - 0x428]
push 0x5c
push ecx
mov dword [ebp - 4], 0
call fcn.0052ceac
mov edx, dword [edi]
mov ecx, dword [ebx + 8]
add esp, 8
push edx
add eax, 2
push eax
mov eax, dword [ebx]
push eax
push ecx
mov ecx, esi
call fcn.004123b0
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
je 0x41db9d
call fcn.00436219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d915
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 1
call fcn.00436219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d945
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42c], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov byte [ebp - 4], 2
mov word [ebp - 0x420], cx
call fcn.0052c850
add esp, 0xc
cmp dword [ebx + 0x20c], 0
je 0x41da1b
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.0052c850
mov edx, dword [edi]
push edx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052cd4a
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052ceda
lea eax, [ebp + eax*2 - 0x218]
lea edx, [ebp - 0x218]
add esp, 0x20
cmp eax, edx
je 0x41d9f8
lea ebx, [ebx]
cmp word [eax], 0x5c
je 0x41d9f5
sub eax, 2
lea ecx, [ebp - 0x218]
cmp eax, ecx
jne 0x41d9e0
jmp 0x41d9f8
add eax, 2
push eax
lea edx, [ebp - 0x420]
push 0x104
push edx
call fcn.0052cd4a
lea eax, [ebp - 0x420]
add esp, 0xc
mov dword [ebp - 0x430], eax
jmp 0x41da27
lea ecx, [ebx + 0x620]
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x430]
push edx
add ebx, 0x418
push ebx
lea eax, [ebp - 0x424]
push str._s_s
push eax
call fcn.00403bf0
add esp, 0x10
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00402930
mov edi, dword [ebp - 0x424]
push 0
push edi
lea ecx, [ebp - 0x45c]
call fcn.00438fbc
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x434], eax
call fcn.00438a9f
cmp dword [ebp - 0x434], 0
je case.default.0x41daa7
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0xc38]
mov dword [0x5ee160], eax
cmp eax, 3
ja case.default.0x41daa7
jmp dword [eax*4 + 0x41df7c]
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41db4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x41daeb
cmp eax, 0x4c8
jne case.default.0x41daa7
push edi
push 0x104
push 0x5edf58
call fcn.0052cd4a
mov eax, dword [ebp - 0x430]
add esp, 0xc
push eax
push ebx
lea ecx, [ebp - 0x434]
push ecx
mov ecx, esi
call fcn.00417020
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 3
call fcn.00402930
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 2
call fcn.00402480
mov edx, dword [ebp - 0x438]
mov eax, 1
mov dword [0x5ee168], eax
mov dword [edx + 0x14], eax
jmp 0x41dc22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.default.0x41daa7
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41db7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41db9d
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0x45c]
mov dword [ebp - 4], 0xffffffff
call fcn.00438f47
mov eax, 2
jmp 0x41df5c
push edi
push 0x104
push 0x5edf58
call fcn.0052cd4a
mov eax, dword [ebp - 0x430]
add esp, 0xc
push eax
push ebx
lea ecx, [ebp - 0x43c]
push ecx
mov ecx, esi
call fcn.00417020
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 4
call fcn.00402930
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41dc18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [0x5ee164], 1
mov edi, dword [ebp - 0x424]
push 0
push ebx
mov ecx, esi
call fcn.00416c10
mov ebx, dword [ebp - 0x428]
cmp word [ebx + 0xa30], 0
lea eax, [ebx + 0xa30]
je 0x41dc5b
push eax
lea ecx, [ebx + 0x828]
push ecx
lea ecx, [esi + 0xdd9c]
call fcn.00428060
mov eax, dword [ebp - 0x440]
mov edx, dword [ebx + 0xc40]
push edi
add eax, 0x12
push 0x104
push eax
mov dword [0x5edf50], edx
call fcn.0052cd4a
mov eax, dword [esi + 0x130]
mov ecx, dword [ebx + 0xc4c]
add esp, 0xc
mov dword [0x5edf4c], ecx
test eax, eax
je 0x41dcd2
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41dcd2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [esi + 0x130]
push eax
call fcn.00423e20
mov esi, dword [esi + 0x130]
test esi, esi
je 0x41dcc2
mov esi, dword [esi + 0x20]
push 0
push 0
push 0x8001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebx + 0xc50]
test ebx, ebx
je 0x41dce2
mov dword [0x5edf48], ebx
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dd08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41dd28
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0x45c]
mov dword [ebp - 4], 0xffffffff
call fcn.00438f47
mov eax, 1
jmp 0x41df5c
cmp eax, 0x13
jne 0x41df5a
cmp dword [0x5ee164], 0
je 0x41dea4
mov eax, dword [0x5edf48]
test eax, eax
je 0x41ddb5
movzx ecx, byte [eax + 0x168]
push ecx
lea edx, [eax + 0x164]
push edx
mov edx, dword [edi]
lea ecx, [eax + 0xe4]
push ecx
add eax, 0x64
push eax
push edx
push 0x5edf58
call fcn.00403630
add esp, 0x18
test eax, eax
jns 0x41dda2
mov eax, 3
mov dword [0x5edf48], 0
jmp 0x41ddc2
neg eax
sbb eax, eax
add eax, 2
mov dword [0x5edf48], 0
jmp 0x41ddc2
mov eax, dword [edi]
push eax
push 0x5edf58
call fcn.00417700
mov ecx, dword [0x5ee160]
cmp ecx, 2
jne 0x41ddf7
cmp eax, 3
je 0x41de05
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x5edf50]
push ecx
push 0x5edf58
lea ecx, [esi + 0xdd9c]
call fcn.004269f0
jmp 0x41def5
cmp ecx, 3
jne 0x41ddd2
cmp eax, 2
je 0x41de05
cmp eax, ecx
jne 0x41ddd2
push 0x20
push 0x5edf58
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x5edf58
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41de74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x41de4a
cmp eax, 0x4c8
jne 0x41def5
mov dword [ebx + 0x14], 1
mov ecx, dword [edi]
push 0x5edf58
push ecx
mov ecx, esi
call fcn.0041b8d0
mov eax, dword [0x5edf50]
cmp eax, 1
je 0x41def5
push eax
jmp 0x41dde2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5edf58
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [edi]
push 0x5edf58
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [0x5edf50]
cmp eax, 1
je 0x41def5
push eax
jmp 0x41dde2
cmp dword [0x5ee168], 0
je 0x41decc
mov edx, dword [edi]
push 0x5edf58
push edx
call fcn.0041b8d0
mov eax, dword [0x5edf50]
cmp eax, 1
je 0x41dee5
push eax
push 0x5edf58
jmp 0x41deda
mov eax, dword [0x5edf50]
cmp eax, 1
je 0x41dee5
push eax
mov eax, dword [edi]
push eax
lea ecx, [esi + 0xdd9c]
call fcn.004269f0
mov ecx, dword [0x5edf4c]
mov edx, dword [edi]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc dword [ebx + 0xc]
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 0x20]
cmp edx, edi
ja 0x41df5a
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
sub eax, ecx
imul eax, edx
xor edx, edx
div edi
add eax, ecx
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x130]
test eax, eax
je 0x41df5a
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41df5a
mov ecx, dword [ebx + 0x10]
push ecx
mov ecx, dword [esi + 0x130]
call fcn.00423c40
mov esi, dword [esi + 0x130]
test esi, esi
je 0x41df4a
mov esi, dword [esi + 0x20]
push 0
push 0
push 0x8001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
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.0052c2ec
mov esp, ebp
pop ebp
ret 0x10