Function at 0x41e5d0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x46d07b
mov eax, dword fs:[0]
push eax
sub esp, 0x578
mov eax, dword [0x491d88]
xor eax, esp
mov dword [esp + 0x574], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491d88]
xor eax, esp
push eax
lea eax, [esp + 0x58c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x59c]
mov esi, dword [esp + 0x5b0]
mov edi, dword [esp + 0x5a0]
mov ebp, dword [esp + 0x5b4]
push 0x140
lea eax, [esp + 0x3c]
push 0
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
call fcn.004530b0
push 0x103
lea ecx, [esp + 0x189]
push 0
push ecx
mov byte [esp + 0x190], 0
call fcn.004530b0
push ebx
lea edx, [esp + 0x194]
push 0x104
push edx
call fcn.004542fb
lea eax, [esp + 0x19c]
add esp, 0x24
test eax, eax
je 0x41e6b0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41e680
sub eax, edx
je 0x41e6b0
cmp byte [esp + eax + 0x177], 0x5c
je 0x41e6b0
push 0x472e4c
add eax, 2
push eax
lea ecx, [esp + 0x180]
push ecx
call fcn.00454360
add esp, 0xc
push edi
lea edx, [esp + 0x17c]
push 0x104
push edx
call fcn.00454360
add esp, 0xc
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ebx, dword [esp + 0x5a8]
je 0x41e8c2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x38], 0x10
jne 0x41e8c2
push 0x103
lea edx, [esp + 0x281]
push 0
push edx
mov byte [esp + 0x288], 0
call fcn.004530b0
push 0x103
lea eax, [esp + 0x391]
push 0
push eax
mov byte [esp + 0x398], 0
call fcn.004530b0
lea ecx, [esp + 0x7c]
push ecx
call fcn.00420a73
add esp, 0x1c
test eax, eax
jne 0x41e76b
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x280]
push 0x104
push eax
call fcn.004542fb
lea ecx, [esp + 0x288]
push ecx
call fcn.004051f0
add esp, 0x10
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x280]
push 0x104
push eax
call fcn.00454360
push esi
lea ecx, [esp + 0x390]
push 0x104
push ecx
call fcn.004542fb
lea edx, [esp + 0x398]
add esp, 0x18
test edx, edx
je 0x41e7d8
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41e7a8
sub eax, edx
je 0x41e7d8
cmp byte [esp + eax + 0x37f], 0x5c
je 0x41e7d8
add eax, 2
push 0x472e4c
push eax
lea eax, [esp + 0x388]
push eax
call fcn.00454360
add esp, 0xc
push edi
lea ecx, [esp + 0x384]
push 0x104
push ecx
call fcn.00454360
add esp, 0xc
cmp dword [esp + 0x5ac], 0
push ebx
je 0x41e810
mov edx, dword [esp + 0x5a8]
push edx
lea eax, [esp + 0x284]
push eax
call fcn.0041d9a0
jmp 0x41e825
mov ecx, dword [esp + 0x5a8]
push ecx
lea edx, [esp + 0x284]
push edx
call fcn.0041d740
add esp, 0xc
test eax, eax
je 0x41e8a6
push 0
lea eax, [esp + 0x384]
push eax
lea ecx, [esp + 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x41e876
lea edx, [esp + 0x380]
push edx
lea eax, [esp + 0x280]
push eax
push str.Successfully_copied__s_to__s
push 1
push 0x4932a8
call fcn.00401300
add esp, 0x14
mov eax, 1
jmp 0x41ec84
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x384]
push ecx
lea edx, [esp + 0x284]
push edx
push str.Failed_to_copy__s_to__s.__Error_d
push 0x400
push 0x4932a8
call fcn.00401300
add esp, 0x18
jmp 0x41e8c2
lea eax, [esp + 0x27c]
push eax
push str.Found_file_but_incorrect_version__s
push 1
push 0x4932a8
call fcn.00401300
add esp, 0x10
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x17c]
push 0x104
push edx
call fcn.004542fb
lea eax, [esp + 0x184]
add esp, 0xc
test eax, eax
je 0x41e920
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41e8f0
sub eax, edx
je 0x41e920
cmp byte [esp + eax + 0x177], 0x5c
je 0x41e920
push 0x472e4c
add eax, 2
push eax
lea ecx, [esp + 0x180]
push ecx
call fcn.00454360
add esp, 0xc
push 0x4745b0
lea edx, [esp + 0x17c]
push 0x104
push edx
call fcn.00454360
add esp, 0xc
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41ea88
jmp 0x41e960
test byte [esp + 0x38], 0x10
je 0x41ea6d
lea edx, [esp + 0x64]
push 0x47304c
push edx
call fcn.004560ae
add esp, 8
test eax, eax
je 0x41ea6d
lea eax, [esp + 0x64]
push 0x47762c
push eax
call fcn.004560ae
add esp, 8
test eax, eax
je 0x41ea6d
push 0x103
lea ecx, [esp + 0x281]
push 0
push ecx
mov byte [esp + 0x288], 0
call fcn.004530b0
lea edx, [esp + 0x70]
push edx
call fcn.00420a73
add esp, 0x10
test eax, eax
jne 0x41ea26
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x280]
push 0x104
push ecx
call fcn.004542fb
lea edx, [esp + 0x288]
add esp, 0xc
test edx, edx
je 0x41ea26
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41e9f6
sub eax, edx
je 0x41ea26
cmp byte [esp + eax + 0x27b], 0x5c
je 0x41ea26
add eax, 2
push 0x472e4c
push eax
lea eax, [esp + 0x284]
push eax
call fcn.00454360
add esp, 0xc
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x280]
push 0x104
push edx
call fcn.00454360
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x5b8]
mov edx, dword [esp + 0x5b0]
push ebp
push eax
push ecx
push ebx
push edx
lea eax, [esp + 0x29c]
push edi
push eax
call fcn.0041e5d0
add esp, 0x28
test eax, eax
jne 0x41ecac
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41e960
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x17c]
push 0x104
push eax
call fcn.004542fb
lea ecx, [esp + 0x184]
add esp, 0xc
test ecx, ecx
je 0x41eae2
mov eax, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41eab2
sub eax, edx
je 0x41eae2
cmp byte [esp + eax + 0x177], 0x5c
je 0x41eae2
push 0x472e4c
add eax, 2
push eax
lea edx, [esp + 0x180]
push edx
call fcn.00454360
add esp, 0xc
push str..cab
lea eax, [esp + 0x17c]
push 0x104
push eax
call fcn.00454360
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41ec82
lea ebx, [ebx]
test byte [esp + 0x38], 0x10
jne 0x41ec67
push 0x103
xor esi, esi
lea eax, [esp + 0x489]
push esi
push eax
mov byte [esp + 0x490], 0
call fcn.004530b0
lea ecx, [esp + 0x70]
push ecx
call fcn.00420a73
add esp, 0x10
test eax, eax
jne 0x41ebb3
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x488]
push 0x104
push eax
call fcn.004542fb
lea ecx, [esp + 0x490]
add esp, 0xc
test ecx, ecx
je 0x41ebb3
mov eax, ecx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41eb83
sub eax, edx
je 0x41ebb3
cmp byte [esp + eax + 0x483], 0x5c
je 0x41ebb3
push 0x472e4c
add eax, 2
push eax
lea edx, [esp + 0x48c]
push edx
call fcn.00454360
add esp, 0xc
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x488]
push 0x104
push ecx
call fcn.00454360
lea eax, [esp + 0x490]
add esp, 0xc
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], esi
mov byte [esp + 0x20], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x41ebe8
sub eax, ecx
push eax
lea edx, [esp + 0x488]
push edx
lea ecx, [esp + 0x24]
call fcn.00403dd0
mov dword [esp + 0x594], esi
mov esi, dword [ebp + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.00407160
push 1
mov ecx, ebp
mov edi, eax
call fcn.00406810
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x594], 0xffffffff
jb 0x41ec52
mov edx, dword [esp + 0x20]
push edx
call fcn.0042f9ca
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41eb20
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x58c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x574]
xor ecx, esp
call fcn.0045309e
add esp, 0x584
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x41ec84