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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a13d
mov eax, dword fs:[0]
push eax
sub esp, 0x52c
mov eax, dword [0x5d7b20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, ecx
lea ecx, [ebp - 0x52c]
call fcn.004477d0
xor eax, eax
mov ecx, 7
xor ebx, ebx
mov dword [ebp - 4], eax
mov edi, 0x100
mov dword [ebp - 0x4a0], ecx
mov dword [ebp - 0x4a4], eax
mov word [ebp - 0x4b4], bx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], eax
mov word [ebp - 0x444], bx
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x450], eax
mov word [ebp - 0x460], ax
mov ecx, dword [edx + 8]
lea ebx, [edx + 4]
mov edx, dword [ecx + 4]
push edx
mov ecx, ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x514], ebx
call fcn.00420d10
mov eax, dword [ebx + 4]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov eax, esi
mov dword [ebx + 8], 0
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4483b0
sub eax, ecx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x460]
call fcn.004021b0
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0053e550
push 0x20a
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.0053e550
add esp, 0x18
lea edx, [ebp - 0x428]
push edx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x448492
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x58aa18
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x448492
push 0
lea edx, [ebp - 0x21c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x448492
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x80
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x448470
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x460]
call fcn.004021b0
cmp dword [ebp - 0x44c], 8
mov eax, dword [ebp - 0x460]
jae 0x4484a7
lea eax, [ebp - 0x460]
push eax
push str.CInfStringTable::GetTable_strTargetInfFile___1_s__IN_n
push 5
call fcn.00403ab0
push 0x39f
push 0x589e14
push 0x200
call fcn.0043e4e0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x44856a
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x4484e0
cmp dword [ebp - 0x44c], 8
mov eax, dword [ebp - 0x460]
jae 0x4484f5
lea eax, [ebp - 0x460]
push eax
push 2
lea eax, [ebp - 0x530]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x44c], 8
mov eax, dword [ebp - 0x460]
jae 0x448520
lea eax, [ebp - 0x460]
push eax
push edi
push esi
push str.Strings
call ebx
lea ecx, [edi - 2]
cmp ecx, eax
jne 0x44855b
push esi
call fcn.0043e500
push 0x3ab
add edi, 0x100
lea edx, [edi + edi]
push 0x589e14
push edx
call fcn.0043e4e0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4484e0
jmp 0x44856a
test eax, eax
jne 0x44856a
push esi
call fcn.0043e500
add esp, 4
xor esi, esi
cmp word [ebp - 0x21c], 0
je 0x4485a9
lea eax, [ebp - 0x21c]
push eax
push str.CInfStringTable::GetTable_Delete_the_temp_file.___1_s___n
push 5
call fcn.00403ab0
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x52c]
test esi, esi
je 0x4485c4
push esi
call fcn.00448200
push esi
call fcn.0043e500
add esp, 4
jmp 0x4485ce
push 0x58a1bc
call fcn.00448200
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x510], 0
call fcn.00445fe0
test eax, eax
je 0x44880c
lea ecx, [ebp - 0x50c]
call fcn.00446510
mov eax, dword [ebp - 0x510]
push eax
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 4
call fcn.00446210
push eax
lea ecx, [ebp - 0x50c]
call fcn.004472e0
lea ecx, [ebp - 0x50c]
call fcn.00446350
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x448630
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x448630
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x444]
call fcn.004021b0
mov eax, dword [ebp - 0x430]
mov edx, dword [ebp - 0x444]
mov edi, edx
cmp eax, 8
jae 0x4486db
lea edi, [ebp - 0x444]
mov ebx, edi
mov ecx, dword [ebp - 0x434]
lea ebx, [ebx + ecx*2]
mov esi, edx
cmp eax, 8
jae 0x44867d
lea esi, [ebp - 0x444]
cmp esi, ebx
je 0x4486a6
sub edi, esi
movzx edx, word [esi]
push edx
call fcn.0053e521
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x448683
mov eax, dword [ebp - 0x430]
mov edx, dword [ebp - 0x444]
mov ecx, edx
cmp eax, 8
jae 0x4486b3
lea ecx, [ebp - 0x444]
cmp word [ecx], 0x3b
jne 0x4486df
cmp eax, 8
mov eax, edx
jae 0x4486c6
lea eax, [ebp - 0x444]
push eax
push str.CInfStringTable::GetTable_strKey.data_____1_s__skipped._n
push 5
call fcn.00403ab0
add esp, 0xc
jmp 0x4487e1
mov ebx, edx
jmp 0x448667
lea ecx, [ebp - 0x50c]
call fcn.00446360
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x444]
mov esi, eax
xor eax, eax
push ecx
mov edi, 7
lea ecx, [ebp - 0x498]
mov dword [ebp - 0x484], edi
mov dword [ebp - 0x488], ebx
mov word [ebp - 0x498], ax
call fcn.00401f90
xor edx, edx
mov eax, esi
mov word [ebp - 0x47c], dx
mov byte [ebp - 4], 5
mov dword [ebp - 0x468], edi
mov dword [ebp - 0x46c], ebx
lea edx, [eax + 2]
jmp 0x448740
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x448740
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x47c]
call fcn.004021b0
mov esi, dword [ebp - 0x514]
push ebx
lea eax, [ebp - 0x498]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004232e0
push eax
lea ecx, [ebp - 0x538]
push ecx
mov ecx, esi
call fcn.00420ef0
mov esi, 8
cmp dword [ebp - 0x468], esi
jb 0x4487a0
mov edx, dword [ebp - 0x47c]
push edx
call fcn.00449b7c
add esp, 4
xor eax, eax
mov dword [ebp - 0x468], edi
mov dword [ebp - 0x46c], ebx
mov word [ebp - 0x47c], ax
cmp dword [ebp - 0x484], esi
jb 0x4487cc
mov ecx, dword [ebp - 0x498]
push ecx
call fcn.00449b7c
add esp, 4
xor edx, edx
mov dword [ebp - 0x484], edi
mov dword [ebp - 0x488], ebx
mov word [ebp - 0x498], dx
lea ecx, [ebp - 0x50c]
call fcn.00446550
mov esi, dword [ebp - 0x510]
inc esi
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x510], esi
call fcn.00445fe0
cmp esi, eax
jb 0x4485eb
mov ebx, 8
cmp dword [ebp - 0x44c], ebx
jb 0x448828
mov eax, dword [ebp - 0x460]
push eax
call fcn.00449b7c
add esp, 4
xor edi, edi
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x450], edi
mov word [ebp - 0x460], cx
cmp dword [ebp - 0x430], ebx
jb 0x44885b
mov edx, dword [ebp - 0x444]
push edx
call fcn.00449b7c
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x52c]
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x434], edi
mov word [ebp - 0x444], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00447830
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret 4