Function at 0x1001af50
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x730
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], esp
lea eax, [esi + 0x2c]
push ecx
xor edi, edi
push 0x10030c5c
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x38], edi
call sub.MFC42.DLL_CString::Format
mov ebx, dword [ebp + 0xc]
push edi
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
test eax, eax
je 0x1001afbb
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x68]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
je 0x1001afe5
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push ebx
lea eax, [ebp - 0x73c]
push 0x100322b8
push eax
call edi
lea ecx, [ebp - 0x73c]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
test eax, eax
jne 0x1001b065
lea edx, [ebp - 0x8c]
lea eax, [ebp - 0x73c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
je 0x1001b043
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x54]
cmp ecx, eax
jne 0x1001b065
mov eax, 0xfffffffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.1001c470
xor ecx, ecx
mov dword [esi + 0x24], eax
mov dword [eax], ecx
mov edx, dword [esi + 0x24]
push str.User.db
mov dword [edx + 4], ecx
mov eax, dword [esi + 0x24]
mov dword [eax + 0x118], ecx
mov edx, dword [esi + 0x24]
mov dword [edx + 0x11c], ecx
mov eax, dword [esi + 0x24]
mov dword [eax + 0x120], ecx
mov edx, dword [esi + 0x24]
mov dword [edx + 0x124], ecx
mov eax, dword [esi + 0x24]
mov dword [eax + 0x128], ecx
mov edx, dword [esi + 0x24]
add edx, 8
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], 1
mov ecx, dword [esi + 0x24]
add ecx, 8
push ecx
call edi
mov edx, dword [esi + 0x24]
add esp, 8
lea eax, [ebp - 0x73c]
mov dword [esi + 0x28], edx
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x73c]
push ecx
mov ecx, esi
call fcn.1001bb20
mov ebx, eax
test ebx, ebx
jne 0x1001b111
mov eax, 0xfffffffb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
mov ecx, esi
call fcn.1001bbd0
mov edx, dword [ebx]
push ebx
call dword [edx + 8]
mov eax, dword [esi + 0x24]
push 0x10032488
push eax
call fcn.1001c2b0
add esp, 8
test eax, eax
jne 0x1001b14e
mov eax, 0xfffffffa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax + 0x120]
test eax, eax
jne 0x1001b170
mov eax, 0xfffffff9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [eax + 0x11c]
test ecx, ecx
mov dword [ebp + 8], ecx
jne 0x1001b195
mov eax, 0xfffffff8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax + 0x118]
xor ebx, ebx
push eax
push ecx
mov ecx, 0x1003d5b8
mov dword [ebp - 0x3c], eax
call fcn.100182b0
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001b1cb
mov eax, 0xfffffff7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x62
mov ecx, esi
call fcn.1001a350
test eax, eax
jne 0x1001b1f0
mov eax, 0xfffffff6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
push 0x10032484
push 0x10032484
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x1c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
add ebx, edi
cmp ebx, eax
jge 0x1001b5fb
cmp edi, 0xffffffff
je 0x1001b5fb
mov edx, dword [ebp + 8]
add ebx, 4
xor eax, eax
mov dword [ebp - 0x34], 0
mov ax, word [ebx + edx]
add ebx, 2
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x34], eax
jge 0x1001b406
mov eax, dword [ebp + 8]
inc ebx
xor edx, edx
movsx ecx, byte [ebx + eax - 1]
mov dx, word [ebx + eax]
mov dword [ebp - 0x20], ecx
cmp edx, 0xc8
ja 0x1001b406
mov ecx, 0x32
xor eax, eax
lea edi, [ebp - 0x154]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x20]
cmp eax, 4
je 0x1001b2af
cmp eax, 6
je 0x1001b2af
cmp eax, 0xa
jne 0x1001b2f0
mov eax, dword [ebp + 8]
mov ecx, edx
lea edi, [ebp - 0x154]
lea esi, [ebx + eax + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp esi, edx
jge 0x1001b2ea
mov al, byte [ebp + esi - 0x154]
or cl, 0xff
sub cl, dl
xor al, cl
mov byte [ebp + esi - 0x154], al
inc esi
jmp 0x1001b2ce
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
cmp eax, 0xa
lea ebx, [ebx + edx + 2]
jne 0x1001b424
lea edx, [ebp - 0x154]
push str.ChildLink
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1001b424
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov edx, eax
mov esi, dword [ebx + eax]
add esi, ebx
sub ecx, esi
lea eax, [esi + edx]
push ecx
push eax
mov ecx, 0x1003d0b0
call fcn.100182b0
cmp eax, 0x42
jne 0x1001b403
mov ecx, dword [0x1003d4b0]
mov edx, dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x53c]
lea esi, [esi + ecx + 0x42]
mov ecx, 0xfa
mov edx, dword [esi + edx]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, edx
lea edi, [ebp - 0x53c]
lea esi, [esi + eax + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
or al, 0xff
and ecx, 3
sub al, dl
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
cmp ecx, edx
jae 0x1001b391
xor byte [ebp + ecx - 0x53c], al
inc ecx
jmp 0x1001b383
lea ecx, [ebp - 0x53c]
push ecx
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x1001b403
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push eax
push str.Group_u
push ecx
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x2c]
add esp, 0xc
inc edx
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x14]
mov esi, 1
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x38], esi
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push str.Group
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
sub ecx, ebx
lea eax, [ebx + edx]
push ecx
push eax
mov ecx, 0x1003d5b8
call fcn.100182b0
mov edi, eax
jmp 0x1001b238
mov edx, dword [ebp + 8]
mov edx, dword [ebx + edx]
cmp edx, 0x3e8
mov dword [ebp - 0x40], edx
jbe 0x1001b446
push ebx
push str.0x_x_invalid_b_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
jmp 0x1001b406
mov ecx, 0xfa
xor eax, eax
lea edi, [ebp - 0x53c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x20]
cmp eax, 4
je 0x1001b466
cmp eax, 6
jne 0x1001b545
mov ecx, 3
mov edi, 0x10032454
lea esi, [ebp - 0x154]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001b558
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x28]
push ecx
push str.QQ_u
push edx
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
add esp, 0xc
lea edx, [ebp - 0x18]
mov ecx, dword [ebx + eax + 4]
inc edi
push ecx
push 0x10032448
push edx
mov dword [ebp - 0x1c], edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x38]
add esp, 0xc
test eax, eax
jne 0x1001b505
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1001b4df
push 0x1003243c
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::operator
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [edi + 0x30]
push eax
push ecx
push str.Group1
push str.Group
call esi
mov dword [ebp - 0x38], 1
jmp 0x1001b50e
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x28]
push edx
push eax
push ecx
call esi
mov edi, dword [edi + 0x30]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
push edi
push edx
push str.Group
push eax
call esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
lea ebx, [ebx + edx + 4]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x44]
jmp 0x1001b267
cmp dword [ebp - 0x20], 6
jne 0x1001b5f3
mov eax, dword [ebp + 8]
mov ecx, edx
lea edi, [ebp - 0x53c]
lea esi, [ebx + eax + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
or al, 0xff
and ecx, 3
sub al, dl
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp esi, edx
jae 0x1001b59c
mov cl, byte [ebp + esi - 0x53c]
xor cl, al
mov byte [ebp + esi - 0x53c], cl
inc esi
jmp 0x1001b585
lea ecx, [ebp - 0x53c]
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x24]
mov byte [ebp - 4], 5
mov eax, dword [edx - 8]
test eax, eax
je 0x1001b5e7
push 0x1003242c
push 0x10030470
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x154]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
jmp 0x1001b53a
mov esi, dword [ebp - 0x14]
jmp 0x1001b545
mov ecx, dword [esi + 0x24]
push ecx
call fcn.1001c4c0
mov eax, dword [esi + 0x30]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0xc
test eax, eax
jne 0x1001b660
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x1001b660
mov eax, dword [esi + 0x34]
mov esi, dword [esi + 0x30]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
test eax, eax
je 0x1001b660
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8