Function at 0x46dd35
Capabilities:
Copy file
Delete file
Get common file path
Read .ini file
Set file attributes

Disassembly:
push 0x504
mov eax, 0x5b4e60
call fcn.0058f792
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x504]
call fcn.0046d53c
push 7
xor edx, edx
xor eax, eax
pop ecx
mov dword [ebp - 4], edx
mov ebx, 0x100
mov dword [ebp - 0x45c], ecx
mov dword [ebp - 0x460], edx
mov word [ebp - 0x470], ax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], edx
mov word [ebp - 0x440], ax
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x448], edx
mov word [ebp - 0x458], ax
lea eax, [esi + 4]
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x4f0], eax
call fcn.0041fc8b
xor eax, eax
cmp word [edi], ax
je 0x46ddbe
push edi
call fcn.0058edd4
pop ecx
push eax
push edi
lea ecx, [ebp - 0x458]
call fcn.00404be0
mov esi, 0x20a
lea eax, [ebp - 0x428]
push esi
push 0
push eax
call fcn.0058e700
push esi
xor esi, esi
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0058e700
add esp, 0x18
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x46de90
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x5dafc0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x46de90
push esi
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor edi, edi
test eax, eax
je 0x46de92
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x80
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp word [ebp - 0x21c], si
jne 0x46de6e
mov eax, edi
jmp 0x46de7b
lea eax, [ebp - 0x21c]
push eax
call fcn.0058edd4
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x458]
call fcn.00404be0
jmp 0x46de92
xor edi, edi
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
push str.strTargetInfFile___1_s__IN_n
push str.CInfStringTable::GetTable
push 5
call fcn.00424dad
push 0x345
push str...CommonString.cpp
push 0x200
call fcn.0045a88d
add esp, 0x1c
mov esi, eax
jmp 0x46df59
cmp dword [ebp - 0x444], 8
lea ecx, [ebp - 0x458]
lea eax, [ebp - 0x508]
cmovae ecx, dword [ebp - 0x458]
push ecx
push 2
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
push ebx
push esi
push str.Strings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [ebx - 2]
cmp ecx, eax
jne 0x46df4c
push esi
call fcn.0045a8a4
add ebx, 0x100
mov dword [esp], 0x350
push str...CommonString.cpp
lea eax, [ebx + ebx]
push eax
call fcn.0045a88d
add esp, 0xc
jmp 0x46decf
test eax, eax
jne 0x46df61
push esi
call fcn.0045a8a4
pop ecx
mov esi, edi
test esi, esi
jne 0x46ded6
cmp word [ebp - 0x21c], 0
je 0x46dfa5
lea eax, [ebp - 0x21c]
push eax
push str.Delete_the_temp_file.___1_s___n
push str.CInfStringTable::GetTable
push 5
call fcn.00424dad
add esp, 0x10
lea eax, [ebp - 0x21c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x504]
test esi, esi
je 0x46dfbe
push esi
call fcn.0046e8e1
push esi
call fcn.0045a8a4
pop ecx
jmp 0x46dfc8
push 0x5dad98
call fcn.0046e8e1
lea ecx, [ebp - 0x504]
call fcn.0046d95f
test eax, eax
je 0x46e143
mov ebx, dword [ebp - 0x4f0]
lea ecx, [ebp - 0x4ec]
call fcn.0046d5a4
push edi
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 4
call fcn.0046dc88
inc eax
lea ecx, [ebp - 0x504]
push eax
push edi
call fcn.0046dbf8
push eax
lea ecx, [ebp - 0x4ec]
call fcn.0046e960
lea ecx, [ebp - 0x4ec]
call fcn.0046dd08
mov esi, eax
xor eax, eax
cmp word [esi], ax
je 0x46e031
push esi
call fcn.0058edd4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x440]
call fcn.00404be0
mov eax, dword [ebp - 0x430]
lea ecx, [ebp - 0x440]
push 8
pop esi
cmp dword [ebp - 0x42c], esi
lea edx, [ebp - 0x440]
push fcn.00590202
cmovae ecx, dword [ebp - 0x440]
cmovae edx, dword [ebp - 0x440]
push edx
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x440]
cmovae ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x4f0]
push ecx
push eax
call fcn.004069eb
add esp, 0x14
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], esi
cmovae eax, dword [ebp - 0x440]
cmp word [eax], 0x3b
jne 0x46e0d1
cmp dword [ebp - 0x42c], esi
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push str.strKey.data_____1_s__skipped._n
push str.CInfStringTable::GetTable
push 5
call fcn.00424dad
add esp, 0x10
jmp 0x46e124
lea ecx, [ebp - 0x4ec]
call fcn.0046e7e6
mov esi, eax
lea ecx, [ebp - 0x4a0]
lea eax, [ebp - 0x440]
push eax
call fcn.00401bb9
push esi
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 5
call fcn.00401c0c
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x510]
mov ecx, ebx
push eax
call fcn.004068f0
lea ecx, [ebp - 0x4a0]
call fcn.00407af3
lea ecx, [ebp - 0x4ec]
call fcn.0046d661
lea ecx, [ebp - 0x504]
inc edi
call fcn.0046d95f
cmp edi, eax
jb 0x46dfe1
xor ebx, ebx
lea ecx, [ebp - 0x458]
xor esi, esi
push ebx
inc esi
push esi
call fcn.00404970
push ebx
push esi
lea ecx, [ebp - 0x440]
call fcn.00404970
push ebx
push esi
lea ecx, [ebp - 0x470]
call fcn.00404970
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x504]
call fcn.0046d5eb
mov eax, esi
call fcn.0058f741
ret 4