Function at 0x409520
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564ff9
mov eax, dword fs:[0]
push eax
mov eax, 0x10ee0
call fcn.00542ad0
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x10ee8]
mov dword [ebp - 4], 0
call fcn.0044a6ce
push 0x800
lea eax, [ebp - 0xa1c]
push 0
push eax
mov byte [ebp - 4], 1
call fcn.00541d20
push 0x208
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.00541d20
add esp, 0x18
push 0x104
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [esi + 0x1c]
mov ecx, edi
mov dword [ebp - 0x10ec4], edi
call fcn.004053c0
lea ecx, [esi + 0x20]
mov dword [ebp - 0x10ec8], ecx
call fcn.004053c0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21e], 0x5c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4095ef
push 0x5958c8
lea ecx, [ebp - 0x21c]
push ecx
call ebx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax - 0xc]
add esi, 0x18
mov dword [ebp - 0x10ed4], esi
test ecx, ecx
jne 0x409692
push 0x5958cc
lea edx, [ebp - 0x21c]
push edx
call ebx
lea eax, [ebp - 0x10ebc]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x409662
mov ecx, esi
call fcn.004053c0
lea ecx, [ebp - 0x10ee8]
mov byte [ebp - 4], 0
call fcn.0044a9bb
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4099d7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409672
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, esi
call fcn.00405470
jmp 0x4096b8
lea edx, [ebp - 0x10c6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4096b1
mov ecx, esi
call fcn.004053c0
jmp 0x4099ae
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xfffe
lea ecx, [ebp - 0x10a1c]
push 0
push ecx
call fcn.00541d20
mov eax, dword [esi]
add esp, 0xc
push eax
mov eax, dword [ebp + 8]
push 0x7fff
lea edx, [ebp - 0x10a1c]
push edx
push 0x5988ec
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x409709
mov ecx, edi
call fcn.004053c0
mov ecx, dword [ebp - 0x10ec8]
call fcn.004053c0
jmp 0x4099ae
call fcn.00448c3f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409723
push 0x80004005
call fcn.00404160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10ec0], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10a1c]
nop
cmp word [eax], 0
jne 0x409755
cmp word [eax + 2], 0
je 0x40975a
mov ecx, 9
mov word [eax], cx
add eax, 2
jmp 0x409740
lea edx, [ebp - 0x10ed0]
push edx
lea eax, [ebp - 0x10a1c]
push 0x5958e8
push eax
mov dword [ebp - 0x10ed0], 0
call fcn.0053deaa
add esp, 0xc
test eax, eax
je 0x4097f2
mov bl, 3
jmp 0x409790
push eax
lea ecx, [ebp - 0x10eec]
call fcn.00404f00
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10ee0]
push eax
push ecx
lea ecx, [ebp - 0x10ee8]
call fcn.0044ab55
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10eec]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4097d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10ed0]
push ecx
push 0x5958e8
push 0
call fcn.0053deaa
add esp, 0xc
test eax, eax
jne 0x409790
mov eax, dword [ebp - 0x10ee0]
xor ebx, ebx
mov dword [ebp - 0x10ecc], ebx
test eax, eax
jle 0x409988
mov ecx, dword [esi]
test ebx, ebx
js 0x409a0b
cmp ebx, eax
jge 0x409a0b
mov edx, dword [ebp - 0x10ee4]
mov eax, dword [edx + ebx*4]
mov edx, dword [ebp + 8]
push ecx
push 0x400
lea ecx, [ebp - 0xa1c]
push ecx
push 0x5988ec
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa1c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409850
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa1c]
push eax
lea ecx, [ebp - 0x10ec0]
call fcn.00405470
mov ecx, dword [ebp - 0x10ec0]
cmp dword [ecx - 0xc], 1
jl 0x409973
mov edx, dword [ebp + 8]
push 0x5957d4
push edx
call fcn.0053d3bf
add esp, 8
test eax, eax
jne 0x409926
lea eax, [ebp - 0xa1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4098a4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa1c]
push eax
mov ecx, edi
call fcn.0040a930
mov eax, dword [edi]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x409a01
mov ebx, dword [ebp - 0x10ec4]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x4098f1
push esi
mov ecx, ebx
call fcn.00405520
mov eax, dword [ebx]
mov ecx, 9
mov word [eax + edi*2], cx
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x409a01
mov edi, dword [ebp - 0x10ec4]
mov dword [eax - 0xc], esi
mov edx, dword [ebx]
mov ebx, dword [ebp - 0x10ecc]
xor eax, eax
mov word [edx + esi*2], ax
mov esi, dword [ebp - 0x10ed4]
jmp 0x409973
mov ecx, dword [ebp + 8]
push str.Delete_Driver_Name
push ecx
call fcn.0053d3bf
add esp, 8
test eax, eax
jne 0x409973
lea eax, [ebp - 0xa1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409944
mov ecx, dword [ebp - 0x10ec8]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0xa1c]
push edx
call fcn.0040a930
mov ecx, dword [ebp - 0x10ec8]
push 9
call fcn.0040a1b0
mov eax, dword [ebp - 0x10ee0]
inc ebx
mov dword [ebp - 0x10ecc], ebx
cmp ebx, eax
jl 0x409808
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10ec0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10ee8]
mov byte [ebp - 4], 0
call fcn.0044a9bb
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404160
call fcn.004490bd
int3