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

Disassembly:
push 0xffffffffffffffff
push 0x4289c1
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x43e6bc]
xor eax, esp
mov dword [esp + 0x284], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43e6bc]
xor eax, esp
push eax
lea eax, [esp + 0x29c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2ac]
mov esi, dword [esp + 0x2b0]
mov dword [esp + 0x30], ebx
call fcn.0040d647
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407337
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 + 0x20], edi
mov dword [esp + 0x2a4], 0
call fcn.0040d647
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40736c
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
push 0x104
lea ecx, [esp + 0x198]
push ecx
mov byte [esp + 0x2ac], 1
mov byte [esp + 0x1f], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x407402
push str.Error_:_Get_windows_path_error_n
call fcn.00403d60
lea eax, [ebp - 0x10]
add esp, 4
mov byte [esp + 0x2a4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4073d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x2a4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x4e25
jmp 0x40778a
cmp dword [esp + 0x2b4], 0
mov dword [esp + 0x2c], 0
jbe 0x40773d
mov edi, esi
lea ecx, [esi + 0x40]
add esi, 0x80
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
jmp 0x407435
mov ebx, dword [esp + 0x30]
mov eax, dword [edi + 0x1c4]
test al, 1
je 0x40744c
cmp byte [0x43fbf4], 0
je 0x40770e
test al, 2
je 0x407470
cmp byte [0x43fbf3], 0
je 0x40770e
mov eax, dword [0x434008]
cmp eax, 6
je 0x407470
cmp eax, 7
jne 0x40770e
test ebx, ebx
jne 0x407478
xor eax, eax
jmp 0x40748b
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407480
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x28]
call fcn.00402830
push 1
push 0x42b460
lea ecx, [esp + 0x28]
call fcn.00402980
test edi, edi
jne 0x4074ae
xor eax, eax
jmp 0x4074be
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4074b3
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.00402980
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x54]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407502
push esi
lea eax, [esp + 0x2c]
push str.Info__:_fail_to_find_files___s__n
push eax
call fcn.004034f0
mov ebp, dword [esp + 0x34]
push ebp
call fcn.00403d60
add esp, 0x10
jmp 0x40770e
lea eax, [esp + 0x194]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407521
sub eax, edx
push eax
lea ecx, [esp + 0x198]
push ecx
lea ecx, [esp + 0x40]
call fcn.00403070
mov esi, dword [esp + 0x1c]
mov edi, 0x42b9d0
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov byte [esp + 0x2a4], 2
jne 0x407566
cmp byte [esp + 0x17], 1
jne 0x407566
lea eax, [edx + 1]
jmp 0x407568
xor eax, eax
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x1c0], eax
je 0x40757f
push 9
push str._system32
jmp 0x4075b6
mov esi, dword [esp + 0x24]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407588
sub eax, edx
je 0x4075af
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4075a0
sub eax, edx
push eax
push esi
jmp 0x4075b6
push 0x11
push str._system32drivers
lea ecx, [esp + 0x40]
call fcn.00402f80
push 1
push 0x42b460
lea ecx, [esp + 0x40]
call fcn.00402f80
lea eax, [esp + 0x80]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4075e0
sub eax, edx
push eax
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x40]
call fcn.00402f80
mov eax, dword [esp + 0x3c]
mov edi, 0x10
cmp dword [esp + 0x50], edi
jae 0x407610
lea eax, [esp + 0x3c]
mov esi, dword [esp + 0x20]
push eax
push esi
lea eax, [esp + 0x30]
push str._nInfo__:_Copy_file___s________s___n
push eax
call fcn.004034f0
mov ebp, dword [esp + 0x38]
push ebp
call fcn.00403d60
mov eax, dword [esp + 0x50]
add esp, 0x14
cmp dword [esp + 0x50], edi
jae 0x407640
lea eax, [esp + 0x3c]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40767b
push str.Error_:_Copy__file_error._n
call fcn.00403d60
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x50], edi
mov byte [esp + 0x2a4], 1
jb 0x4076f5
mov ecx, dword [esp + 0x3c]
push ecx
jmp 0x4076ed
push str.Info__:_Copy_file_OK._n
call fcn.00403d60
mov esi, dword [esp + 0x20]
add esp, 4
mov edi, 0x42b9d0
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4076a8
cmp byte [esp + 0x17], 1
jne 0x4076a8
lea eax, [edx + 1]
jmp 0x4076aa
xor eax, eax
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x1c0], eax
je 0x4076d2
sub dword [esp + 0x2c], 1
mov eax, 0x1cc
sub dword [esp + 0x18], eax
sub dword [esp + 0x24], eax
sub dword [esp + 0x1c], eax
mov byte [esp + 0x17], dl
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x50], 0x10
mov byte [esp + 0x2a4], 1
jb 0x4076f5
mov edx, dword [esp + 0x3c]
push edx
call fcn.0040d16a
add esp, 4
mov edi, dword [esp + 0x18]
mov byte [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0xf
mov eax, dword [esp + 0x2c]
mov ecx, 0x1cc
add dword [esp + 0x24], ecx
add dword [esp + 0x1c], ecx
add eax, 1
add edi, ecx
cmp eax, dword [esp + 0x2b4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
jb 0x407431
mov edi, dword [esp + 0x20]
lea eax, [ebp - 0x10]
mov byte [esp + 0x2a4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x2a4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407788
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x29c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.0041613d
add esp, 0x294
ret