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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c009
mov eax, dword fs:[0]
push eax
mov eax, 0x10ee0
call fcn.00539330
mov eax, dword [0x5b4450]
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.00441da6
push 0x800
lea eax, [ebp - 0xa1c]
push 0
push eax
mov byte [ebp - 4], 1
call fcn.005373f0
push 0x208
lea ecx, [ebp - 0x21c]
push 0
push ecx
call fcn.005373f0
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.00401600
lea ecx, [esi + 0x20]
mov dword [ebp - 0x10ec8], ecx
call fcn.00401600
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 0x4040ff
push 0x58abe4
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 0x4041a2
push 0x58abe8
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 0x404172
mov ecx, esi
call fcn.00401600
lea ecx, [ebp - 0x10ee8]
mov byte [ebp - 4], 0
call fcn.004420db
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 0x4044e7
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 0x404182
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, esi
call fcn.004016b0
jmp 0x4041c8
lea edx, [ebp - 0x10c6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4041c1
mov ecx, esi
call fcn.00401600
jmp 0x4044be
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xfffe
lea ecx, [ebp - 0x10a1c]
push 0
push ecx
call fcn.005373f0
mov eax, dword [esi]
add esp, 0xc
push eax
mov eax, dword [ebp + 8]
push 0x7fff
lea edx, [ebp - 0x10a1c]
push edx
push 0x58a8c8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x404219
mov ecx, edi
call fcn.00401600
mov ecx, dword [ebp - 0x10ec8]
call fcn.00401600
jmp 0x4044be
call fcn.0044033f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404233
push 0x80004005
call fcn.004010a0
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 0x404265
cmp word [eax + 2], 0
je 0x40426a
mov ecx, 9
mov word [eax], cx
add eax, 2
jmp 0x404250
lea edx, [ebp - 0x10ed0]
push edx
lea eax, [ebp - 0x10a1c]
push 0x58ac04
push eax
mov dword [ebp - 0x10ed0], 0
call fcn.00534921
add esp, 0xc
test eax, eax
je 0x404302
mov bl, 3
jmp 0x4042a0
push eax
lea ecx, [ebp - 0x10eec]
call fcn.00401210
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10ee0]
push eax
push ecx
lea ecx, [ebp - 0x10ee8]
call fcn.00442275
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 0x4042e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10ed0]
push ecx
push 0x58ac04
push 0
call fcn.00534921
add esp, 0xc
test eax, eax
jne 0x4042a0
mov eax, dword [ebp - 0x10ee0]
xor ebx, ebx
mov dword [ebp - 0x10ecc], ebx
test eax, eax
jle 0x404498
mov ecx, dword [esi]
test ebx, ebx
js 0x40451b
cmp ebx, eax
jge 0x40451b
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 0x58a8c8
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 0x404360
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa1c]
push eax
lea ecx, [ebp - 0x10ec0]
call fcn.004016b0
mov ecx, dword [ebp - 0x10ec0]
cmp dword [ecx - 0xc], 1
jl 0x404483
mov edx, dword [ebp + 8]
push 0x58aaf0
push edx
call fcn.00533c47
add esp, 8
test eax, eax
jne 0x404436
lea eax, [ebp - 0xa1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4043b4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0xa1c]
push eax
mov ecx, edi
call fcn.004058b0
mov eax, dword [edi]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x404511
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 0x404401
push esi
mov ecx, ebx
call fcn.00401760
mov eax, dword [ebx]
mov ecx, 9
mov word [eax + edi*2], cx
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x404511
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 0x404483
mov ecx, dword [ebp + 8]
push str.Delete_Driver_Name
push ecx
call fcn.00533c47
add esp, 8
test eax, eax
jne 0x404483
lea eax, [ebp - 0xa1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404454
mov ecx, dword [ebp - 0x10ec8]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0xa1c]
push edx
call fcn.004058b0
mov ecx, dword [ebp - 0x10ec8]
push 9
call fcn.00404cc0
mov eax, dword [ebp - 0x10ee0]
inc ebx
mov dword [ebp - 0x10ecc], ebx
cmp ebx, eax
jl 0x404318
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 0x4044be
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.004420db
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 0x4044f3
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.005337cb
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004010a0
call fcn.004409a4
int3