Function at 0x404090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47baa1
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x4a5018]
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 ebx, ecx
push 0x492e10
push 0x48f03c
push str.active_app
call fcn.00426bd0
add esp, 8
mov esi, esp
mov dword [ebp - 0x668], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.ActFlag
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004067d0
test al, al
jne 0x40411d
push 7
push str.ActFlag
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00403f90
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004573c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ecx
mov esi, esp
mov dword [ebp - 0x668], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DCreateRK
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004067d0
test al, al
jne 0x4041a9
push 9
push str.DCreateRK
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00403e90
or edi, 0xffffffff
test eax, eax
je 0x4044c8
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x66c], eax
lea eax, [ebp - 0x664]
mov dword [ebp - 4], 2
mov dword [ebp - 0x668], eax
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x664], eax
push str.DPid
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 3
call fcn.004067d0
test al, al
jne 0x404239
push 4
push str.DPid
lea ecx, [ebp - 0x664]
call fcn.004069d0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004573c0
mov esi, dword [0x4aaa7c]
add esp, 0xc
test esi, esi
je 0x404263
lock inc dword [esi + 4]
mov esi, dword [0x4aaa7c]
mov ecx, dword [0x4aaa78]
mov dword [ebp - 0x660], ecx
mov dword [ebp - 0x65c], esi
mov byte [ebp - 4], 5
lea edx, [ebp - 0x668]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
push dword [ebx + 0x30]
lea ecx, [ebp - 0x420]
push 0x104
push ecx
push 0x492c60
push dword [ebp - 0x664]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [ebp - 0x668]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4042c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
test esi, esi
je 0x4042ee
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4042ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4042ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, 0x2a
cmp ax, word [ebp - 0x420]
je 0x404327
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404305
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x66c]
call fcn.004069d0
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x664]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404348
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x664], esp
mov dword [ebp - 0x668], esi
mov eax, dword [ebp - 0x66c]
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x668], eax
call fcn.00406910
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov eax, dword [0x4a8b04]
test eax, eax
jne 0x4043a6
push 0x1a4
call fcn.004551d2
add esp, 4
mov dword [ebp - 0x65c], eax
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0043ccf0
mov byte [ebp - 4], 6
mov dword [0x4a8b04], eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.0043dfa0
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DPid
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.004067d0
test al, al
jne 0x4043fc
push 4
push str.DPid
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00403f90
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.ProgVer
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.004067d0
test al, al
jne 0x40444b
push 7
push str.ProgVer
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00403f90
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DCreateRK
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.004067d0
test al, al
jne 0x40449a
push 9
push str.DCreateRK
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00403f90
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x668]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404503
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x404503
cmp dword [0x4a8b04], 0
jne 0x4044fe
push 0x1a4
call fcn.004551d2
add esp, 4
mov dword [ebp - 0x65c], eax
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.0043ccf0
mov dword [ebp - 4], 0xffffffff
mov dword [0x4a8b04], eax
call fcn.00447d30
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DCreateL
mov ecx, esi
mov dword [ebp - 4], 0xc
call fcn.004067d0
test al, al
jne 0x40454a
push 8
push str.DCreateL
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00403e90
test eax, eax
je 0x4045f9
mov eax, dword [0x4a8b04]
test eax, eax
jne 0x404596
push 0x1a4
call fcn.004551d2
add esp, 4
mov dword [ebp - 0x65c], eax
mov ecx, eax
mov dword [ebp - 4], 0xd
call fcn.0043ccf0
mov dword [ebp - 4], 0xffffffff
mov dword [0x4a8b04], eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.0043e210
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DCreateL
mov ecx, esi
mov dword [ebp - 4], 0xe
call fcn.004067d0
test al, al
jne 0x4045eb
push 8
push str.DCreateL
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00403f90
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DAIF
mov ecx, esi
mov dword [ebp - 4], 0xf
call fcn.004067d0
test al, al
jne 0x404640
push 4
push str.DAIF
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00403e90
test eax, eax
je 0x4046ef
mov eax, dword [0x4a8b04]
test eax, eax
jne 0x40468c
push 0x1a4
call fcn.004551d2
add esp, 4
mov dword [ebp - 0x65c], eax
mov ecx, eax
mov dword [ebp - 4], 0x10
call fcn.0043ccf0
mov dword [ebp - 4], 0xffffffff
mov dword [0x4a8b04], eax
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.0043e440
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DAIF
mov ecx, esi
mov dword [ebp - 4], 0x11
call fcn.004067d0
test al, al
jne 0x4046e1
push 4
push str.DAIF
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00403f90
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DCreateSM
mov ecx, esi
mov dword [ebp - 4], 0x12
call fcn.004067d0
test al, al
jne 0x404736
push 9
push str.DCreateSM
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00403e90
test eax, eax
je 0x4047d7
cmp dword [0x4a8b04], 0
jne 0x404782
push 0x1a4
call fcn.004551d2
add esp, 4
mov dword [ebp - 0x65c], eax
mov ecx, eax
mov dword [ebp - 4], 0x13
call fcn.0043ccf0
mov dword [ebp - 4], 0xffffffff
mov dword [0x4a8b04], eax
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.DCreateSM
mov ecx, esi
mov dword [ebp - 4], 0x14
call fcn.004067d0
test al, al
jne 0x4047c9
push 9
push str.DCreateSM
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00403f90
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x492ccc
mov ecx, esi
mov dword [ebp - 4], 0x15
call fcn.004067d0
test al, al
jne 0x40481e
push 3
push 0x492ccc
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00403e90
test eax, eax
je 0x404b85
xor eax, eax
mov dword [ebp - 0x658], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 7
lea edx, [ecx + 2]
mov word [ebp - 0x658], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404864
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x658]
call fcn.00405dc0
mov dword [ebp - 4], 0x16
mov edi, dword [0x4aaa7c]
test edi, edi
je 0x4048a1
lock inc dword [edi + 4]
mov edi, dword [0x4aaa7c]
mov ecx, dword [0x4aaa78]
mov dword [ebp - 0x660], ecx
mov dword [ebp - 0x65c], edi
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x668]
mov eax, dword [ecx]
push edx
call dword [eax + 0x64]
mov byte [ebp - 4], 0x18
mov esi, dword [eax]
lea eax, [ebp - 0x628]
push 0x208
push 0
push eax
call fcn.004573c0
cmp dword [ebp - 0x644], 8
lea eax, [ebp - 0x658]
cmovae eax, dword [ebp - 0x658]
push eax
lea eax, [ebp - 0x628]
push 0x492ce0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x628]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp - 0x640], 0
lea ecx, [ebp - 0x628]
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x640], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404944
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x640]
call fcn.00405dc0
mov byte [ebp - 4], 0x19
lea esi, [ebp - 0x640]
cmp dword [ebp - 0x62c], 8
cmovae esi, dword [ebp - 0x640]
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404c01
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x664], eax
push esi
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 0x1a
call fcn.004067d0
test al, al
jne 0x4049dc
test esi, esi
jne 0x4049b7
xor ecx, ecx
jmp 0x4049cf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4049c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x664]
call fcn.004069d0
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x62c]
cmp edx, 8
jb 0x404a20
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404a16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c0b
push edx
push ecx
call fcn.00455202
add esp, 8
xor eax, eax
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
mov byte [ebp - 4], 0x1d
or esi, 0xffffffff
mov edx, dword [ebp - 0x668]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404a61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x404a84
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x404a84
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x404a84
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0x1f
mov edx, dword [ebp - 0x644]
cmp edx, 8
jb 0x404ac8
mov ecx, dword [ebp - 0x658]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404abe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c0b
push edx
push ecx
call fcn.00455202
add esp, 8
xor eax, eax
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 7
mov word [ebp - 0x658], ax
call fcn.004213b0
mov esi, dword [ebp - 0x664]
test eax, eax
jne 0x404b17
push ecx
mov edi, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x65c], edi
call fcn.00406910
add eax, 0x10
mov ecx, 1
mov dword [edi], eax
call fcn.00420f20
add esp, 4
push ecx
mov edi, esp
mov dword [ebp - 0x65c], edi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404c10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x492ccc
mov ecx, edi
mov byte [ebp - 4], 0x20
call fcn.004067d0
test al, al
jne 0x404b5b
push 3
push 0x492ccc
mov ecx, edi
call fcn.004069d0
mov ecx, ebx
mov byte [ebp - 4], 0x1f
call fcn.00403f90
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x404b85
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x65c], esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x404bf7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.InsTM
mov ecx, esi
mov dword [ebp - 4], 0x21
call fcn.004067d0
test al, al
jne 0x404bc8
push 5
push str.InsTM
mov ecx, esi
call fcn.004069d0
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00403f90
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.00454d47
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
call fcn.00459a0a
push 0x80004005
call fcn.00402980
int3