Function at 0x407ed0
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42b3f6
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x4424ac]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4424ac]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2a8]
mov esi, dword [esp + 0x2ac]
mov dword [esp + 0x30], ebp
call fcn.0040f25f
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407f39
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x104
lea ecx, [esp + 0x194]
push ecx
mov dword [esp + 0x2a8], ebx
mov byte [esp + 0x1f], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x407faa
push str.Error_:_Get_windows_path_error_n
call fcn.00404950
lea eax, [edi - 0x10]
add esp, 4
mov dword [esp + 0x2a0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407fa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4e25
jmp 0x4082c5
cmp dword [esp + 0x2b0], ebx
mov dword [esp + 0x28], ebx
jbe 0x40829c
mov edi, esi
lea ecx, [esi + 0x40]
add esi, 0x80
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
jmp 0x407fd8
mov ebp, dword [esp + 0x30]
cmp ebp, ebx
jne 0x407fe0
xor eax, eax
jmp 0x407ff0
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407fe5
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.004032e0
push 1
push 0x42e478
lea ecx, [esp + 0x20]
call fcn.00403430
cmp edi, ebx
jne 0x408013
xor eax, eax
jmp 0x408023
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408018
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x20]
call fcn.00403430
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x50]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40805d
push esi
push str.Info__:_fail_to_find_files___s__n
call fcn.00404950
add esp, 8
mov esi, 0x1d0
jmp 0x408272
lea eax, [esp + 0x190]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408077
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
lea ecx, [esp + 0x3c]
call fcn.004039d0
mov esi, dword [esp + 0x20]
mov edi, 0x42e86c
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0x2a0], 1
jne 0x4080be
cmp byte [esp + 0x17], 1
jne 0x4080be
mov eax, 1
jmp 0x4080c0
xor eax, eax
cmp eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x1c4], eax
je 0x4080e0
push 9
push str._system32
lea ecx, [esp + 0x3c]
call fcn.00403e70
jmp 0x408136
mov esi, dword [esp + 0x24]
cmp esi, ebx
mov dword [esp + 0x2c], ebx
je 0x408106
lea edi, [esp + 0x2c]
mov ecx, 0x104
mov edx, esi
call fcn.00401c40
cmp eax, ebx
jl 0x40810b
mov ecx, dword [esp + 0x2c]
jmp 0x40810d
mov eax, 0x80070057
xor ecx, ecx
cmp eax, ebx
jne 0x4082ed
cmp ecx, 0x102
ja 0x4082ed
cmp ecx, ebx
lea ecx, [esp + 0x34]
jbe 0x40812c
push esi
jmp 0x408131
push str._system32drivers
call fcn.00404770
push 1
push 0x42e478
lea ecx, [esp + 0x3c]
call fcn.00403e70
lea eax, [esp + 0x7c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x408150
sub eax, edx
push eax
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x3c]
call fcn.00403e70
mov eax, dword [esp + 0x38]
mov edi, 0x10
cmp dword [esp + 0x4c], edi
jae 0x408180
lea eax, [esp + 0x38]
mov esi, dword [esp + 0x18]
push eax
push esi
push str._nInfo__:_Copy_file___s________s___n
call fcn.00404950
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp dword [esp + 0x4c], edi
jae 0x4081a1
lea eax, [esp + 0x38]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4081e3
push str.Error_:_Copy__file_error._n
call fcn.00404950
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x4c], edi
mov byte [esp + 0x2a0], bl
jb 0x4081dc
mov eax, dword [esp + 0x38]
push eax
call fcn.0040eec8
add esp, 4
mov esi, 0x1d0
jmp 0x40825e
push str.Info__:_Copy_file_OK._n
call fcn.00404950
mov esi, dword [esp + 0x24]
add esp, 4
mov edi, 0x42e86c
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x408212
cmp byte [esp + 0x17], 1
jne 0x408212
mov eax, 1
jmp 0x408214
xor eax, eax
cmp eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x1c4], eax
mov esi, 0x1d0
je 0x40823c
sub dword [esp + 0x28], 1
sub dword [esp + 0x1c], esi
sub dword [esp + 0x24], esi
sub dword [esp + 0x20], esi
mov byte [esp + 0x17], bl
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x4c], 0x10
mov byte [esp + 0x2a0], bl
jb 0x40825e
mov edx, dword [esp + 0x38]
push edx
call fcn.0040eec8
add esp, 4
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x38], bl
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0xf
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], esi
add dword [esp + 0x20], esi
add eax, 1
add edi, esi
cmp eax, dword [esp + 0x2b0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edi
jb 0x407fd4
mov edi, dword [esp + 0x18]
lea eax, [edi - 0x10]
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.00417b3b
add esp, 0x290
ret
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x4c], 0x10
jb 0x408308
mov eax, dword [esp + 0x38]
push eax
call fcn.0040eec8
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x2a0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408343
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4e2e
jmp 0x4082c5