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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c800
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x60c9c8]
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 + 0x10]
push eax
lea ecx, [esi + 0x158]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], edi
call fcn.0040c520
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421ce7
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 - 0x2c], 0
jbe 0x422133
imul edi, ebx
mov dword [ebp - 0x28], edi
mov edi, dword [ebp + 0xc]
add edi, 0xa30
mov dword [ebp + 0x10], edi
cmp dword [edi - 0xa30], 0
jne 0x42207f
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4220be
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [edi - 0x410]
push eax
add edi, 0xfffff9e8
push edi
lea ecx, [ebp - 0x1c]
push 0x55d250
push ecx
mov dword [ebp - 4], 0
call fcn.004047a0
mov eax, dword [esi + 0x140]
mov ebx, dword [ebp - 0x1c]
add esp, 0x10
test eax, eax
je 0x421da4
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x421da4
mov ecx, dword [esi + 0x140]
push ebx
call fcn.00429240
mov eax, dword [esi + 0x140]
test eax, eax
je 0x421d94
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x50]
call fcn.0043f9a5
push 0
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0043fa4c
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x20], eax
call fcn.0043f52f
cmp dword [ebp - 0x20], 0
je 0x421ddc
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x208], 1
je 0x422050
mov eax, dword [ebp + 0x10]
add eax, 0xfffff7e0
push 0
push eax
lea ecx, [ebp - 0x50]
call fcn.0043fa4c
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], eax
call fcn.0043f52f
cmp dword [ebp - 0x30], 0
jne 0x421e58
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x20c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
jne 0x422057
call fcn.0043f9d7
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421e3f
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
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
push 1
push edi
mov ecx, esi
call fcn.004197a0
mov eax, dword [ebp + 0x10]
cmp word [eax], 0
je 0x421e7d
push eax
add eax, 0xfffffdf8
push eax
lea ecx, [esi + 0xd9b8]
call fcn.0042dea0
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc40], 1
je 0x421eff
cmp dword [esi + 0xc], 0
je 0x421eff
cmp dword [ebp - 0x20], 0
je 0x421eff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffbf0
push eax
push edi
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00419bc0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
push 0
push edx
add eax, 0xfffff7e0
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x421ef7
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x21c]
mov edx, dword [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x14]
push ebx
push eax
mov ecx, esi
call fcn.0041ead0
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
jmp 0x421f8f
mov eax, dword [ebp + 0x10]
push 0
push ebx
add eax, 0xfffff7e0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x421fb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x421f2f
cmp eax, 0x4c8
jne 0x4220eb
mov eax, dword [ebp + 0x10]
add eax, 0xfffffbf0
push eax
push edi
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.00419bc0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
push 0
push edx
add eax, 0xfffff7e0
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4220c8
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x21c]
mov edx, dword [ebp - 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x10]
push ebx
push eax
mov ecx, esi
call fcn.0041ead0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], 1
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 0x421fc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x421fc2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x21c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
add edi, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edi
cmp eax, dword [ebp + 8]
ja 0x422005
mov eax, dword [esi + 0x140]
test eax, eax
je 0x422005
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x422005
xor edx, edx
mov eax, edi
div dword [ebp + 8]
mov ecx, dword [esi + 0x140]
add eax, dword [ebp + 0x14]
push eax
call fcn.00429060
mov eax, dword [esi + 0x140]
test eax, eax
je 0x42203a
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x42203a
mov eax, dword [esi + 0x140]
test eax, eax
je 0x42202a
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x210]
push eax
push ebx
lea ecx, [esi + 0xd9b8]
call fcn.0042c670
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0043f9d7
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42207f
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 0x10]
inc eax
add edi, 0xc54
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x10], edi
cmp eax, dword [ebp + 8]
jb 0x421d0a
cmp dword [ebp - 0x18], 0
je 0x422133
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.00402a80
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 0x4220eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.0043f9d7
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42211a
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
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