Function at 0x422040
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4930b8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4b81bc]
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 edi, ecx
mov dword [ebp - 0x34], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], 0
cmp byte [edi + 0x20], 0
mov dword [ebp - 0x54], eax
jne 0x422660
mov eax, dword [ebp - 0x44]
and eax, 0xfffffe07
mov dword [ebp - 0x40], 0
or eax, 7
push 8
mov dword [ebp - 0x44], eax
call fcn.00439955
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00418500
mov dword [esi], eax
mov dword [ebp - 0x4c], esi
lea eax, [edi + 0x18]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x30], eax
push ecx
mov ecx, eax
call fcn.00417100
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.00417040
mov eax, dword [0x4bda94]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x422126
call fcn.00430da0
mov esi, dword [0x4bd43c]
call fcn.00430da0
xor ecx, ecx
lea eax, [esi + esi*4]
cmp dword [0x4bd334], ecx
setne cl
inc ecx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x38], eax
mov dword [0x4bda94], eax
mov ecx, dword [edi + 0x14]
cmp dword [ecx - 0xc], 0
je 0x42214e
add ecx, 0xfffffff0
call fcn.004094f0
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 2
mov ebx, 1
jmp 0x422165
lea ecx, [ebp - 0x50]
call fcn.00420b00
mov dword [ebp - 4], 3
mov ebx, 2
mov esi, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x28], ebx
call fcn.004094f0
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 5
test bl, 2
je 0x4221a5
mov edx, dword [ebp - 0x50]
and ebx, 0xfffffffd
mov dword [ebp - 0x28], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4221a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
test bl, 1
je 0x4221cc
and ebx, 0xfffffffe
add esi, 0xfffffff0
mov dword [ebp - 0x28], ebx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4221cc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x20]
call fcn.00431a40
test eax, eax
je 0x4221e3
lea ecx, [ebp - 0x20]
call fcn.00404020
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 8]
cmp dword [ecx - 0xc], 0
je 0x42220c
add ecx, 0xfffffff0
call fcn.004094f0
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
mov dword [ebp - 0x1c], eax
or ebx, 4
jmp 0x422224
lea ecx, [ebp - 0x2c]
call fcn.004204f0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 8
or ebx, 8
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x30]
push str.Version
mov dword [ebp - 0x28], ebx
call fcn.00417700
mov ecx, dword [ebp - 0x1c]
mov edx, eax
call fcn.0042a580
mov dword [ebp - 4], 7
test bl, 8
je 0x42226c
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffff7
mov dword [ebp - 0x28], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42226c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 6
test bl, 4
je 0x422296
and ebx, 0xfffffffb
add esi, 0xfffffff0
mov dword [ebp - 0x28], ebx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x422296
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
cmp dword [ecx - 0xc], 0
je 0x4222bf
add ecx, 0xfffffff0
call fcn.004094f0
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 9
mov dword [ebp - 0x18], eax
or ebx, 0x10
jmp 0x4222d7
lea ecx, [ebp - 0x2c]
call fcn.004208b0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xa
or ebx, 0x20
mov esi, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x30]
push 0x4aac00
mov dword [ebp - 0x28], ebx
call fcn.00417700
mov ecx, dword [ebp - 0x18]
mov edx, eax
call fcn.0042a580
mov dword [ebp - 4], 9
test bl, 0x20
je 0x42231f
mov edx, dword [ebp - 0x2c]
and ebx, 0xffffffdf
mov dword [ebp - 0x28], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42231f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 6
test bl, 0x10
je 0x422349
and ebx, 0xffffffef
add esi, 0xfffffff0
mov dword [ebp - 0x28], ebx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x422349
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x10]
cmp dword [ecx - 0xc], 0
je 0x422372
add ecx, 0xfffffff0
call fcn.004094f0
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], eax
or ebx, 0x40
jmp 0x42238d
lea ecx, [ebp - 0x2c]
call fcn.00420c30
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xc
or ebx, 0x80
mov esi, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x30]
push str.AppID
mov dword [ebp - 0x28], ebx
call fcn.00417700
mov ecx, dword [ebp - 0x18]
mov edx, eax
call fcn.0042a580
mov dword [ebp - 4], 0xb
test bl, bl
jns 0x4223d7
mov edx, dword [ebp - 0x2c]
and ebx, 0xffffff7f
mov dword [ebp - 0x28], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4223d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 6
test bl, 0x40
je 0x422401
and ebx, 0xffffffbf
add esi, 0xfffffff0
mov dword [ebp - 0x28], ebx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x422401
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x10]
cmp dword [ecx - 0xc], 0
je 0x42242d
add ecx, 0xfffffff0
call fcn.004094f0
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x18], eax
or ebx, 0x100
jmp 0x422448
lea ecx, [ebp - 0x2c]
call fcn.00420d60
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xe
or ebx, 0x200
mov esi, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x30]
push str.DNB_AppID
mov dword [ebp - 0x28], ebx
call fcn.00417700
mov ecx, dword [ebp - 0x18]
mov edx, eax
call fcn.0042a580
mov dword [ebp - 4], 0xd
test ebx, 0x200
je 0x422496
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffdff
mov dword [ebp - 0x28], ebx
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422496
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 6
test ebx, 0x100
je 0x4224bd
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4224bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x30]
push ecx
push str.PFile
mov ecx, ebx
call fcn.00417700
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0042a580
lea ecx, [ebp - 0x2c]
call fcn.004209e0
mov esi, eax
push ecx
push 0x4aac20
mov ecx, ebx
mov byte [ebp - 4], 0xf
call fcn.00417700
mov edx, eax
mov ecx, esi
call fcn.0042a580
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42251a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
push str.OSVer
mov ecx, ebx
call fcn.00417700
mov ecx, dword [ebp - 0x44]
mov esi, eax
mov eax, 0xcccccccd
mov dword [ebp - 0x40], 0
mul dword [ebp - 0x38]
and ecx, 0xffffff02
mov ebx, edx
or ecx, 2
shr ebx, 3
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x10
push eax
mov ecx, esi
call fcn.00417100
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00417040
push ecx
mov ecx, dword [ebp - 0x30]
push str.OSBit
call fcn.00417700
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
and ecx, 0xffffff02
or ecx, 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], ecx
lea ecx, [ebx + ebx*4]
add ecx, ecx
sub edx, ecx
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
push ecx
mov ecx, eax
call fcn.00417100
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00417040
lea ecx, [ebp - 0x2c]
call fcn.00420590
mov esi, eax
push ecx
mov ecx, dword [ebp - 0x30]
push str.InstallDate
mov byte [ebp - 4], 0x12
call fcn.00417700
mov edx, eax
mov ecx, esi
call fcn.0042a580
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4225fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2c]
call fcn.00421210
mov esi, eax
push ecx
mov ecx, dword [ebp - 0x30]
push str.Group
mov byte [ebp - 4], 0x13
call fcn.00417700
mov edx, eax
mov ecx, esi
call fcn.0042a580
mov byte [ebp - 4], 6
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42263f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42265d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x34]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov ebx, eax
call esi
mov esi, eax
call fcn.00403f70
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42268e
push 0x80004005
call fcn.00404990
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x14
push str._dx_d
push eax
call fcn.00411c10
add esp, 0x10
mov dword [ebp - 0x24], 0
mov edx, str.UserSettings.ini
lea ecx, [ebp - 0x24]
call fcn.0041f3f0
mov byte [ebp - 4], 0x15
call fcn.00403f70
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4226e9
push 0x80004005
call fcn.00404990
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0x16
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov ebx, dword [ebp - 0x24]
jge 0x422721
push 0x400
lea ecx, [ebp - 0x1c]
call fcn.004048e0
mov esi, dword [ebp - 0x1c]
push ebx
push 0x400
push esi
push 0x4a78a8
push str.qmid
push str.login
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [esi - 8]
push esi
call fcn.00473092
add esp, 8
test eax, eax
js 0x4228a1
cmp eax, dword [esi - 8]
jg 0x4228a1
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [edi + 0x18]
push ecx
push str.Resolution
mov ecx, eax
mov dword [ebp - 0x38], eax
call fcn.00417700
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov edx, edi
mov ebx, eax
call fcn.004313c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x4c]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x18
call fcn.00417100
lea ecx, [ebp - 0x4c]
call fcn.00417040
mov byte [ebp - 4], 0x16
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4227c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [ebp - 0x38]
push str.QMID
call fcn.00417700
mov edx, esi
lea ecx, [ebp - 0x2c]
mov ebx, eax
call fcn.004313c0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x64]
push dword [eax]
call fcn.00416de0
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x1a
call fcn.00417100
lea ecx, [ebp - 0x64]
call fcn.00417040
mov byte [ebp - 4], 0x16
or ebx, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422823
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x54]
call fcn.00417100
mov byte [ebp - 4], 0x15
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x422849
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422867
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x422883
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
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.00439921
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404990
int3