Function at 0x4b9e10
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4b9eed
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4b9eed
nop
mov edi, dword [esi + 0x14]
mov eax, dword [edi + 4]
movzx eax, byte [eax]
push eax
lea eax, [ebp - 0x20c]
push 0x650ac0
push eax
call fcn.0049f160
add esp, 0xc
add edi, 8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9e66
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4b9e9e
cmp dword [ebx + 0xa4], 8
lea eax, [ebx + 0x90]
jb 0x4b9e8a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [esi + 0xd], 0
jne 0x4b9ee2
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4b9ec3
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4b9ee2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4b9eb7
jmp 0x4b9ee2
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4b9ee0
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x4b9ee0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4b9ed0
mov esi, eax
mov eax, dword [ebx + 0x18]
cmp esi, dword [eax]
jne 0x4b9e40
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x4b9fb3
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4b9fb3
mov edi, dword [esi + 0x14]
mov eax, dword [edi + 4]
push dword [eax]
lea eax, [ebp - 0x20c]
push 0x650ac0
push eax
call fcn.0049f160
add esp, 0xc
add edi, 8
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9f30
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4b9f68
cmp dword [ebx + 0xa4], 8
lea eax, [ebx + 0x90]
jb 0x4b9f54
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [esi + 0xd], 0
jne 0x4b9fa8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4b9f8d
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4b9fa8
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4b9f81
jmp 0x4b9fa8
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4b9fa6
cmp esi, dword [eax + 8]
jne 0x4b9fa6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4b9f96
mov esi, eax
mov eax, dword [ebx + 0x1c]
cmp esi, dword [eax]
jne 0x4b9f04
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4ba075
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4ba075
nop word [eax + eax]
mov edi, dword [esi + 0x14]
lea eax, [ebp - 0x20c]
push dword [edi + 4]
push 0x5ead74
push eax
call fcn.0049f160
add esp, 0xc
add edi, 8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9ff2
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4ba02a
cmp dword [ebx + 0xa4], 8
lea eax, [ebx + 0x90]
jb 0x4ba016
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push str.Setting
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [esi + 0xd], 0
jne 0x4ba06a
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4ba04f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4ba06a
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4ba043
jmp 0x4ba06a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4ba068
cmp esi, dword [eax + 8]
jne 0x4ba068
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4ba058
mov esi, eax
mov eax, dword [ebx + 0x20]
cmp esi, dword [eax]
jne 0x4b9fd0
cmp dword [ebx + 0xd4], 8
lea esi, [ebx + 0xc0]
jb 0x4ba088
mov eax, dword [esi]
jmp 0x4ba08a
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push 0x5eb054
push str.ModifySetConfig
push str.SetModify
call edi
cmp dword [esi + 0x14], 8
jb 0x4ba0ac
mov eax, dword [esi]
jmp 0x4ba0ae
mov eax, esi
push eax
push 0x5eb054
push str.ModifySetConfig64
push str.SetModify
call edi
cmp dword [esi + 0x14], 8
jb 0x4ba0ca
mov eax, dword [esi]
jmp 0x4ba0cc
mov eax, esi
push eax
push 0x5eb054
push str.TempModifySetConfig
push str.SetModify
call edi
cmp dword [esi + 0x14], 8
jb 0x4ba0e6
mov esi, dword [esi]
push esi
push 0x5eb054
push str.TempModifySetConfig64
push str.SetModify
call edi
cmp dword [ebx + 0xbc], 8
lea ecx, [ebx + 0xa8]
jb 0x4ba109
mov ecx, dword [ecx]
cmp dword [ebx + 0xa4], 8
lea eax, [ebx + 0x90]
pop edi
pop esi
pop ebx
jb 0x4ba11d
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret