Function at 0x41df90
Capabilities:
Copy file
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546678
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5ec938]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x18]
sub edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x148]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], edi
call fcn.0040a010
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e007
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 8], 0
mov dword [ebp - 0x18], 0
jbe 0x41e3ff
imul edi, ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
add ebx, 0xa30
jmp 0x41e030
cmp dword [ebx - 0xa30], 0
jne 0x41e309
call fcn.00436219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41e342
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
lea eax, [ebx - 0x410]
push eax
lea ecx, [ebx - 0x618]
push ecx
lea ecx, [ebp + 0xc]
push str._s_s
push ecx
mov dword [ebp - 4], 0
call fcn.00403bf0
mov eax, dword [esi + 0x130]
mov edi, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
je 0x41e0ca
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41e0ca
mov ecx, dword [esi + 0x130]
push edi
call fcn.00423e20
mov eax, dword [esi + 0x130]
test eax, eax
je 0x41e0ba
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x40]
call fcn.00438f15
push 0
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00438fbc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], eax
call fcn.00438a9f
cmp dword [ebp - 0x20], 0
je 0x41e0ff
cmp dword [ebx + 0x208], 1
je 0x41e2de
lea eax, [ebx - 0x820]
push 0
push eax
lea ecx, [ebp - 0x40]
call fcn.00438fbc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], eax
call fcn.00438a9f
cmp dword [ebp - 0x20], 0
jne 0x41e166
cmp dword [ebx + 0x20c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
je 0x41e3be
call fcn.00438f47
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e309
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x41e309
push 1
lea eax, [ebx - 0x618]
push eax
mov ecx, esi
call fcn.00416c10
cmp word [ebx], 0
je 0x41e18f
push ebx
lea eax, [ebx - 0x208]
push eax
lea ecx, [esi + 0xdd9c]
call fcn.00428060
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push edi
lea eax, [ebx - 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41e247
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x41e1c6
cmp eax, 0x4c8
jne 0x41e34c
lea eax, [ebx - 0x410]
push eax
lea eax, [ebx - 0x618]
push eax
lea ecx, [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00417020
mov edx, dword [ebp + 0x10]
push 0
push edx
lea eax, [ebx - 0x820]
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41e394
mov eax, dword [ebx + 0x21c]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 0x10]
push edi
push edx
mov ecx, esi
call fcn.0041b8d0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e255
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41e255
mov ecx, dword [ebx + 0x21c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
add dword [ebp - 0x10], edx
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp + 8]
ja 0x41e296
mov eax, dword [esi + 0x130]
test eax, eax
je 0x41e296
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41e296
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 8]
mov ecx, dword [esi + 0x130]
add eax, dword [ebp + 0x14]
push eax
call fcn.00423c40
mov eax, dword [esi + 0x130]
test eax, eax
je 0x41e2cb
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41e2cb
mov eax, dword [esi + 0x130]
test eax, eax
je 0x41e2bb
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebx + 0x210]
push edx
push edi
lea ecx, [esi + 0xdd9c]
call fcn.004269f0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00438f47
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
mov dword [ebp - 4], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41e309
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, dword [ebp - 0x18]
inc eax
add ebx, 0xc54
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp + 8]
jb 0x41e030
cmp dword [ebp - 0x1c], 0
je 0x41e3ff
mov eax, 0xbc2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.00401ed0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00438f47
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41e37b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
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 0x41e3b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00438f47
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e3e6
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14