Function at 0x412eb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x493724
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24c]
xor ebx, ebx
push 0x206
mov dword [esp + 0x248], ebx
lea eax, [esp + 0x36]
push ebx
mov dword [esp + 0x2c], ebx
push eax
mov dword [esp + 0x38], ebp
mov word [esp + 0x3c], bx
call fcn.00463d60
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov esi, 1
mov dword [esp + 0x244], esi
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x244], 2
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x244], 3
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x244], 4
mov edx, dword [0x4b994c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4b994c
call eax
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x24], esi
lea esi, [esp + 0x18]
call fcn.0042cd40
mov byte [esp + 0x244], 5
mov ecx, dword [eax]
push ecx
push str._sdrivermain.ini
lea edi, [esp + 0x24]
call fcn.004039d0
mov byte [esp + 0x24c], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413002
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x104
lea ecx, [esp + 0x38]
push ecx
push 0x4a0c40
push 0x4a1090
push str.infos
call edi
lea eax, [esp + 0x30]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x413030
sub eax, edx
sar eax, 1
lea edx, [esp + 0x30]
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00401f30
push esi
push 0x104
lea eax, [esp + 0x38]
push eax
push 0x4a0c40
push str.Version
push str.DisplayVersions
call edi
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413072
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x30]
mov ebx, eax
push ecx
lea eax, [esp + 0x24]
call fcn.00401f30
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
cmp eax, 6
jle 0x4130e9
lea eax, [esp + 0x14]
push eax
mov eax, 6
lea ecx, [esp + 0x1c]
call fcn.00416af0
lea edi, [esp + 0x14]
mov byte [esp + 0x244], 6
call fcn.00401cd0
mov byte [esp + 0x244], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4130e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
push ecx
push ebx
push str._s._s
mov edi, ebp
call fcn.004039d0
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x244], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413126
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41314e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x244], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413176
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x244], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41319a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0045eec1
add esp, 0x234
ret