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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x14]
push 0x1a
pop edx
mov dword [ebp - 0x1c], ebx
call fcn.00413915
mov edi, 0x4194e4
lea ecx, [ebp - 0x14]
push edi
call fcn.004043fa
push 8
pop edx
lea ecx, [ebp - 0x34]
call fcn.004044c4
push eax
lea ecx, [ebp - 0x14]
call fcn.004042c5
mov ecx, dword [ebp - 0x34]
call fcn.00406f1d
mov esi, str..tmp
lea ecx, [ebp - 0x14]
push esi
call fcn.004043fa
push 0x1a
pop edx
lea ecx, [ebp - 0x18]
call fcn.00413915
push edi
lea ecx, [ebp - 0x18]
call fcn.004043fa
push 8
pop edx
lea ecx, [ebp - 0x34]
call fcn.004044c4
push eax
lea ecx, [ebp - 0x18]
call fcn.004042c5
mov ecx, dword [ebp - 0x34]
call fcn.00406f1d
push esi
lea ecx, [ebp - 0x18]
call fcn.004043fa
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0x34]
je 0x40fbea
push 0x1a
jmp 0x40fbec
push 0x1c
pop edx
call fcn.00413915
push eax
lea ecx, [ebp - 0x10]
call fcn.004043c7
mov ecx, dword [ebp - 0x34]
call fcn.00406f1d
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004043fa
cmp byte [ebp + 0x10], 0
lea ecx, [ebp + 0x10]
je 0x40fc1b
push 0x1a
jmp 0x40fc1d
push 0x1c
pop edx
call fcn.00413915
push eax
lea ecx, [ebp - 0xc]
call fcn.004043c7
mov ecx, dword [ebp + 0x10]
call fcn.00406f1d
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
call fcn.004043fa
mov eax, dword [ebp - 0x10]
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x40fdb1
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fdb1
mov eax, dword [ebp - 0x10]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40fdb1
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40fdb1
xor eax, eax
mov dword [ebp + 0x10], eax
test esi, esi
je 0x40fcbe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406e8d
push esi
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x40]
xor ebx, ebx
mov dword [ebp - 0x34], ecx
mov ecx, ebx
mov dword [ebp + 8], ecx
test eax, eax
je 0x40fd3d
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.00406f2c
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.0040434f
push eax
lea ecx, [ebp + 8]
call fcn.0040415d
mov ecx, dword [ebp + 0xc]
call fcn.00406f1d
mov ecx, ebx
call fcn.00406f1d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push ecx
call dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
call fcn.00406f1d
test ebx, ebx
je 0x40fddd
push ecx
mov ebx, esp
and dword [ebx], 0
test esi, esi
je 0x40fd80
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push esi
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
mov ebx, esp
and dword [ebx], 0
test edi, edi
je 0x40fdab
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push edi
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
pop ecx
and dword [ebp - 0x34], 0
mov ecx, edi
call fcn.00406f1d
mov ecx, esi
call fcn.00406f1d
mov ecx, dword [ebp - 0xc]
call fcn.00406f1d
mov ecx, dword [ebp + 0x10]
call fcn.00406f1d
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
leave
ret 0x14
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x10]
and dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00410827
mov ebx, dword [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x34], 1
test eax, eax
je 0x410072
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 8]
mov ecx, dword [ebx + 0x44]
mov edx, str.select_signon_realm__origin_url__username_value__password_value_from_wow_logins
push 0
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 - 0x30]
call ecx
add esp, 0x14
test eax, eax
jne 0x410072
push dword [ebp - 8]
mov eax, dword [ebx + 0x60]
call eax
pop ecx
cmp eax, 0x64
jne 0x41006a
mov edi, dword [ebp + 0x18]
mov esi, ebx
xor ebx, ebx
mov eax, dword [esi + 0x4c]
push ebx
push dword [ebp - 8]
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp + 0x14], ebx
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40fe88
push eax
lea ecx, [ebp - 0x38]
call fcn.0040434f
push eax
lea ecx, [ebp + 0xc]
call fcn.0040415d
mov ecx, dword [ebp - 0x38]
call fcn.00406f1d
mov eax, dword [esi + 0x4c]
push 1
push dword [ebp - 8]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40feb3
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040434f
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040415d
mov ecx, dword [ebp - 0x3c]
call fcn.00406f1d
mov eax, dword [esi + 0x4c]
push 2
push dword [ebp - 8]
call eax
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40fede
push eax
lea ecx, [ebp - 0x40]
call fcn.0040434f
push eax
lea ecx, [ebp + 0x14]
call fcn.0040415d
mov ecx, dword [ebp - 0x40]
call fcn.00406f1d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x20]
push 3
push dword [ebp - 8]
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x78]
call eax
mov ecx, dword [esi + 0x70]
mov ebx, eax
push 3
push dword [ebp - 8]
call ecx
add esp, 4
mov edx, ebx
mov ecx, eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.004108a6
add esp, 0x14
test eax, eax
jne 0x40ff24
xor ecx, ecx
call fcn.00406f1d
xor ecx, ecx
jmp 0x40ff39
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040434f
push eax
lea ecx, [ebp + 8]
call fcn.0040415d
mov ecx, dword [ebp - 0x4c]
call fcn.00406f1d
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40ff50
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jg 0x40ff6a
mov eax, dword [ebp + 8]
test eax, eax
je 0x41002d
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x41002d
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
test eax, eax
je 0x40ffa7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40ffa7
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp + 0xc]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x5c]
call fcn.004043c7
mov ecx, dword [ebp + 0x18]
call fcn.00406f1d
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40ffd9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40ffd9
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x14]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x58]
call fcn.004043c7
mov ecx, dword [ebp - 0x24]
call fcn.00406f1d
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41000b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41000b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.004040d5
push eax
lea ecx, [ebp - 0x54]
call fcn.004043c7
mov ecx, dword [ebp - 0x28]
call fcn.00406f1d
mov dword [ebp - 0x28], ebx
sub esp, 0x10
mov dword [ebp - 0x50], edi
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00402790
mov ecx, esi
call fcn.0040283b
lea ecx, [ebp - 0x5c]
call fcn.004015d4
jmp 0x41002f
xor ebx, ebx
mov ecx, dword [ebp + 0x14]
call fcn.00406f1d
mov ecx, dword [ebp - 0x2c]
call fcn.00406f1d
mov ecx, dword [ebp + 0xc]
call fcn.00406f1d
mov ecx, dword [ebp + 8]
call fcn.00406f1d
push dword [ebp - 8]
mov eax, dword [esi + 0x60]
call eax
pop ecx
cmp eax, 0x64
je 0x40fe52
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
test eax, eax
jne 0x40fd59
push dword [ebp - 8]
call dword [ebx + 0x7c]
pop ecx
push dword [ebp - 0x30]
call dword [0x41e8bc]
mov ebx, esp
and dword [ebx], 0
test esi, esi
je 0x4100a8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push esi
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
mov ebx, esp
and dword [ebx], 0
test edi, edi
je 0x4100d3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406f2c
push edi
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.00413c34
pop ecx
jmp 0x40fdb5