Function at 0x406d50
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416936
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4262b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp + 8]
push 7
push str._open__
push ebx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov edi, dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 0xc
test eax, eax
jne 0x407060
push str.Temporary_Internet_Files
push ebx
call edi
add esp, 8
test eax, eax
je 0x407060
mov edi, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::constructor_void_]
lea ecx, [ebp - 0x1c]
call edi
push 0x41a9f4
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
lea ecx, [ebx + 7]
mov esi, eax
push ecx
lea ecx, [ebp - 0x1c]
mov byte [esi], 0
call dword [0x418114]
lea eax, [ebp - 0x1c]
mov byte [esi], 0x22
xor ebx, ebx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_class_AString_const__]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call edi
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::getFileName_class_AString__const]
lea ecx, [ebp - 0x10]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AString::GetLength_void_const]
xor esi, esi
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x406f5c
lea ecx, [eax - 2]
mov dword [ebp - 0x38], ecx
nop
cmp esi, ecx
jge 0x406f07
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.FSUTIL.dll_public:_char___thiscall_AString::operator___int_const]
cmp al, 0x25
jne 0x406f07
lea ebx, [esi + 1]
push ebx
lea ecx, [ebp - 0x10]
call dword [sym.imp.FSUTIL.dll_public:_char___thiscall_AString::operator___int_const]
cmp al, 0x30
jb 0x406e6f
cmp al, 0x39
jbe 0x406e81
cmp al, 0x41
jb 0x406e77
cmp al, 0x46
jbe 0x406e81
sub al, 0x61
cmp al, 5
ja 0x406f04
lea edi, [esi + 2]
push edi
lea ecx, [ebp - 0x10]
call dword [sym.imp.FSUTIL.dll_public:_char___thiscall_AString::operator___int_const]
cmp al, 0x30
jb 0x406e96
cmp al, 0x39
jbe 0x406ea4
cmp al, 0x41
jb 0x406e9e
cmp al, 0x46
jbe 0x406ea4
sub al, 0x61
cmp al, 5
ja 0x406f04
push ebx
lea ecx, [ebp - 0x10]
call dword [sym.imp.FSUTIL.dll_public:_char___thiscall_AString::operator___int_const]
mov cl, al
lea ebx, [ecx - 0x30]
cmp bl, 9
jbe 0x406ec4
sub al, 0x41
lea ebx, [ecx - 0x37]
cmp al, 5
jbe 0x406ec4
lea ebx, [ecx - 0x57]
push edi
lea ecx, [ebp - 0x10]
call dword [sym.imp.FSUTIL.dll_public:_char___thiscall_AString::operator___int_const]
mov dl, al
lea ecx, [edx - 0x30]
cmp cl, 9
jbe 0x406ee4
sub al, 0x41
lea ecx, [edx - 0x37]
cmp al, 5
jbe 0x406ee4
lea ecx, [edx - 0x57]
shl bl, 4
add bl, cl
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x30], bl
push dword [ebp - 0x30]
call dword [sym.imp.FSUTIL.dll_public:_class_AString_const____thiscall_AString::operator_char_]
mov ebx, 1
mov esi, edi
mov dword [ebp - 0x20], ebx
jmp 0x406f1e
mov ebx, dword [ebp - 0x20]
push esi
lea ecx, [ebp - 0x10]
call dword [sym.imp.FSUTIL.dll_public:_char___thiscall_AString::operator___int_const]
movzx eax, al
lea ecx, [ebp - 0x18]
push eax
call dword [sym.imp.FSUTIL.dll_public:_class_AString_const____thiscall_AString::operator_char_]
mov ecx, dword [ebp - 0x38]
inc esi
cmp esi, dword [ebp - 0x34]
jl 0x406e40
test ebx, ebx
je 0x406f5c
lea ecx, [ebp - 0x18]
call dword [sym.imp.FSUTIL.dll_public:_char_const____thiscall_AString::operator_char_const__void_const]
push eax
call dword [sym.imp.FSUTIL.dll_convertFromUTF8]
mov esi, eax
add esp, 4
test esi, esi
je 0x406f5c
push esi
lea ecx, [ebp - 0x10]
call dword [0x418114]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0x14]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::GetRuntimeDataFolder_void_]
push str.temp
lea ecx, [ebp - 0x14]
call dword [0x4180f8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::operator_class_AString_const__]
push 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.FSUTIL.dll_public:_char_const____thiscall_AFilePath::operator_char_const__void_]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.FSUTIL.dll_public:_char_const____thiscall_AString::operator_char_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AString::destructor_void_]
test eax, eax
je 0x407020
mov esi, dword [sym.imp.FSUTIL.dll_public:_class_AString___thiscall_AFilePath::GetFullPath_void_]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
call esi
mov ecx, eax
mov byte [ebp - 4], 5
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AString::GetLength_void_const]
add eax, 0x14
push eax
call sub.mfc140.dll_Ordinal_265
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
mov edi, eax
call ebx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
call esi
push dword [eax]
push str._open___s___
push edi
call fcn.00407e20
add esp, 0xc
lea ecx, [ebp - 0x34]
call ebx
mov ecx, dword [ebp - 0x24]
push edi
call sub.mfc140.dll_Ordinal_9353
push edi
mov esi, eax
call sub.mfc140.dll_Ordinal_266
add esp, 4
mov dword [ebp - 0x2c], 1
jmp 0x407029
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
lea ecx, [ebp - 0x18]
call ebx
lea ecx, [ebp - 0x10]
call ebx
lea ecx, [ebp - 0x28]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call ebx
cmp dword [ebp - 0x2c], 0
jne 0x4070a4
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.VCRUNTIME140.dll_strstr]
mov ecx, dword [ebp - 0x24]
push ebx
call sub.mfc140.dll_Ordinal_9353
mov esi, eax
test esi, esi
je 0x4070a4
push str.__ub
push ebx
call edi
add esp, 8
test eax, eax
jne 0x40708d
push str.__vub
push ebx
call edi
add esp, 8
test eax, eax
je 0x4070a4
push str.__ub
push ebx
call edi
neg eax
sbb eax, eax
neg eax
push eax
call fcn.00407b80
add esp, 0xc
mov ebx, dword [ebp - 0x24]
cmp dword [ebx + 0x17c], 0
jne 0x4070e7
call sub.mfc140.dll_Ordinal_2251
test eax, eax
je 0x4070e7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
test eax, eax
je 0x4070e7
call dword [sym.imp.fscore.dll_public:_static_class_AApplication____cdecl_AApplication::GetApplication_void_]
push 0
push 0x3ea
push 0xc
lea ecx, [eax + 0xcc]
mov eax, dword [ecx]
call dword [eax]
mov dword [ebx + 0x17c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4