Function at 0x40bf77
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
xor ebx, ebx
push 0x1a
pop edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call fcn.00414891
mov edi, 0x41a58c
lea ecx, [ebp - 0x18]
push edi
call fcn.004034f3
push 8
pop edx
lea ecx, [ebp - 0x38]
call fcn.00403700
push eax
lea ecx, [ebp - 0x18]
call fcn.004034b6
mov ecx, dword [ebp - 0x38]
call fcn.004068b7
mov esi, str..tmp
lea ecx, [ebp - 0x18]
push esi
call fcn.004034f3
push 0x1a
pop edx
lea ecx, [ebp - 0x1c]
call fcn.00414891
push edi
lea ecx, [ebp - 0x1c]
call fcn.004034f3
push 8
pop edx
lea ecx, [ebp - 0x38]
call fcn.00403700
push eax
lea ecx, [ebp - 0x1c]
call fcn.004034b6
mov ecx, dword [ebp - 0x38]
call fcn.004068b7
push esi
lea ecx, [ebp - 0x1c]
call fcn.004034f3
lea ecx, [ebp - 0x38]
cmp byte [ebp + 0x10], bl
je 0x40c013
push 0x1a
jmp 0x40c015
push 0x1c
pop edx
call fcn.00414891
push eax
lea ecx, [ebp - 0x14]
call fcn.004035de
mov ecx, dword [ebp - 0x38]
call fcn.004068b7
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004034f3
lea ecx, [ebp + 0x10]
cmp byte [ebp + 0x10], bl
je 0x40c043
push 0x1a
jmp 0x40c045
push 0x1c
pop edx
call fcn.00414891
push eax
lea ecx, [ebp - 0xc]
call fcn.004035de
mov ecx, dword [ebp + 0x10]
call fcn.004068b7
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
call fcn.004034f3
mov eax, dword [ebp - 0x14]
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x40c1e4
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c1e4
mov eax, dword [ebp - 0x14]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40c1e4
push ebx
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40c1e4
mov eax, ebx
mov dword [ebp + 0x10], eax
test esi, esi
je 0x40c0e4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406886
push esi
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x40]
mov dword [ebp - 0x38], ecx
mov ecx, ebx
mov dword [ebp + 8], ecx
test eax, eax
je 0x40c164
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push ebx
push ebx
push ebx
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
mov ecx, ebx
call fcn.00406875
push dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push eax
push dword [ebp + 0x10]
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea ecx, [ebp + 0xc]
call fcn.004037f9
push eax
lea ecx, [ebp + 8]
call fcn.00403881
mov ecx, dword [ebp + 0xc]
call fcn.004068b7
mov ecx, ebx
call fcn.004068b7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [ebp - 0x38]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
call fcn.004068b7
test ebx, ebx
je 0x40c213
push ecx
mov eax, esp
xor ebx, ebx
mov dword [ebp + 0x14], eax
mov dword [eax], ebx
test esi, esi
je 0x40c1ae
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0x14]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
mov eax, esp
mov dword [ebp + 0x14], eax
mov dword [eax], ebx
test edi, edi
je 0x40c1de
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0x14]
push edi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
pop ecx
mov eax, ebx
mov ebx, eax
mov dword [ebp - 0x38], ebx
mov ecx, edi
call fcn.004068b7
mov ecx, esi
call fcn.004068b7
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
mov ecx, dword [ebp + 0x10]
call fcn.004068b7
mov eax, dword [ebp - 0x38]
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
call fcn.00411497
add esp, 0x10
mov dword [ebp - 0x38], 1
test eax, eax
je 0x40c54b
mov eax, dword [ebp - 0x10]
mov edx, str.select_signon_realm__origin_url__username_value__password_value_from_wow_logins
cmp byte [ebp + 0x14], bl
push ebx
mov ecx, dword [eax + 0x44]
lea eax, [ebp - 8]
push eax
mov eax, str.select_signon_realm__origin_url__username_value__password_value_from_logins
push 0xffffffffffffffff
cmovne eax, edx
push eax
push dword [ebp - 0x20]
call ecx
add esp, 0x14
test eax, eax
jne 0x40c54b
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
mov eax, dword [eax + 0x60]
call eax
pop ecx
cmp eax, 0x64
jne 0x40c48f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x4c]
push ebx
push dword [ebp - 8]
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp + 0x14], ebx
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40c2c1
push eax
lea ecx, [ebp - 0x3c]
call fcn.004037f9
push eax
lea ecx, [ebp + 0xc]
call fcn.00403881
mov ecx, dword [ebp - 0x3c]
call fcn.004068b7
mov eax, dword [edi + 0x4c]
push 1
push dword [ebp - 8]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40c2ec
push eax
lea ecx, [ebp - 0x40]
call fcn.004037f9
push eax
lea ecx, [ebp - 0x34]
call fcn.00403881
mov ecx, dword [ebp - 0x40]
call fcn.004068b7
mov eax, dword [edi + 0x4c]
push 2
push dword [ebp - 8]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40c317
push eax
lea ecx, [ebp - 0x44]
call fcn.004037f9
push eax
lea ecx, [ebp + 0x14]
call fcn.00403881
mov ecx, dword [ebp - 0x44]
call fcn.004068b7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
push 3
push dword [ebp - 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x78]
call eax
mov ecx, dword [edi + 0x70]
mov ebx, eax
push 3
push dword [ebp - 8]
call ecx
add esp, 4
mov edx, ebx
mov ecx, eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0041154b
add esp, 0x14
test eax, eax
jne 0x40c35d
xor ecx, ecx
call fcn.004068b7
xor ecx, ecx
jmp 0x40c372
push eax
lea ecx, [ebp - 0x50]
call fcn.004037f9
push eax
lea ecx, [ebp + 8]
call fcn.00403881
mov ecx, dword [ebp - 0x50]
call fcn.004068b7
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40c385
push eax
call esi
test eax, eax
jg 0x40c39b
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c455
push eax
call esi
test eax, eax
jle 0x40c455
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
test eax, eax
je 0x40c3d4
push eax
call esi
test eax, eax
jle 0x40c3d4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0xc]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x60]
call fcn.004035de
mov ecx, dword [ebp - 0x28]
call fcn.004068b7
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40c402
push eax
call esi
test eax, eax
jle 0x40c402
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x14]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x5c]
call fcn.004035de
mov ecx, dword [ebp - 0x2c]
call fcn.004068b7
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c430
push eax
call esi
test eax, eax
je 0x40c430
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 8]
call fcn.004038f5
push eax
lea ecx, [ebp - 0x58]
call fcn.004035de
mov ecx, dword [ebp - 0x30]
call fcn.004068b7
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0x18]
sub esp, 0x10
mov dword [ebp - 0x54], eax
mov ecx, esp
lea eax, [ebp - 0x60]
push eax
call fcn.0040c5c4
mov ecx, edi
call fcn.00410e2d
lea ecx, [ebp - 0x60]
call fcn.00402933
jmp 0x40c457
xor ebx, ebx
mov ecx, dword [ebp + 0x14]
call fcn.004068b7
mov ecx, dword [ebp - 0x34]
call fcn.004068b7
mov ecx, dword [ebp + 0xc]
call fcn.004068b7
mov ecx, dword [ebp + 8]
call fcn.004068b7
push dword [ebp - 8]
mov eax, dword [edi + 0x60]
call eax
pop ecx
cmp eax, 0x64
je 0x40c28b
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
cmp eax, 0x65
jne 0x40c4e0
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
call dword [eax + 0x7c]
pop ecx
push dword [ebp - 0x20]
call dword [0x420944]
mov eax, esp
mov dword [ebp + 0x14], eax
mov dword [eax], ebx
test esi, esi
je 0x40c4d2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0x14]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
xor eax, eax
pop ecx
inc eax
jmp 0x40c1e6
test eax, eax
je 0x40c54b
push ecx
mov eax, esp
mov dword [ebp + 0x14], eax
mov dword [eax], ebx
test esi, esi
je 0x40c510
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0x14]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
mov eax, esp
mov dword [ebp + 0x14], eax
mov dword [eax], ebx
test edi, edi
je 0x40c540
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0x14]
push edi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
pop ecx
jmp 0x40c1e8
mov eax, dword [ebp - 0x10]
push dword [ebp - 8]
call dword [eax + 0x7c]
pop ecx
push dword [ebp - 0x20]
call dword [0x420944]
mov eax, esp
mov dword [ebp + 0x14], eax
mov dword [eax], ebx
test esi, esi
je 0x40c589
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0x14]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
mov eax, esp
mov dword [ebp + 0x14], eax
mov dword [eax], ebx
test edi, edi
je 0x40c5b9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov ecx, dword [ebp + 0x14]
push edi
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
pop ecx
jmp 0x40c1eb