Function at 0x406e60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bc1d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4a5018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
and dword [ebp - 0x40], 0xfffffe00
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x48]
mov ecx, dword [ebp + 8]
call fcn.0041c350
or edi, 0xffffffff
test eax, eax
je 0x4074e0
mov eax, dword [ebp - 0x40]
test al, al
je 0x406ec6
cmp al, 7
jne 0x4074e0
push ecx
push str.code
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], 0
call fcn.0041ad20
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.0041c950
cmp dword [ebp - 0x14], 0x7d0
jne 0x4074e8
push ecx
push str.data
lea ecx, [ebp - 0x48]
call fcn.0041ad20
push eax
lea ecx, [ebp - 0x38]
call fcn.0041a570
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
test al, al
je 0x406f36
cmp al, 7
je 0x406f2a
lea ecx, [ebp - 0x38]
mov esi, 0x80004005
call fcn.0041a770
jmp 0x4074ed
test al, al
je 0x406f36
cmp al, 7
jne 0x4074cc
push str.shell_pic_assoc
lea ecx, [ebp - 0x38]
call fcn.0041af10
cmp eax, 0x4aaa58
je 0x4070f4
push ecx
push str.shell_pic_assoc
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], 1
call fcn.0041ad20
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.0041c950
mov edx, str.seConfig.ini
lea ecx, [ebp - 0x10]
call fcn.00419d10
mov esi, dword [0x4aaa7c]
test esi, esi
je 0x406f8e
lock inc dword [esi + 4]
mov esi, dword [0x4aaa7c]
mov ecx, dword [0x4aaa78]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 5
lea edx, [ebp - 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
push dword [ebp - 0x10]
push 1
push str.AutoDetectPicAssoc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x18]
mov ebx, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x406fd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
test esi, esi
je 0x406fff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x406fff
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x406fff
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x4070d6
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x40752a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push 0x492ee0
push eax
call fcn.00407700
mov ebx, dword [0x4aaa7c]
add esp, 0xc
test ebx, ebx
je 0x40704e
lock inc dword [ebx + 4]
mov ebx, dword [0x4aaa7c]
mov ecx, dword [0x4aaa78]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 7
lea edx, [ebp - 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push esi
push str.AutoDetectPicAssoc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407098
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x4070bb
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x4070bb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x4070bb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4070d6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4070f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.shell_pic_apps
lea ecx, [ebp - 0x38]
call fcn.0041af10
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0x4aaa58
je 0x4072e6
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x407534
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push ecx
push str.shell_pic_apps
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.0041ad20
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.0041cab0
push 0x1000
call fcn.0045540a
push 0x1000
push 0
push eax
mov dword [ebp - 0x10], eax
call fcn.004573c0
add esp, 0x10
lea ecx, [ebp - 0x14]
mov edx, str.seConfig.ini
call fcn.00419d10
mov esi, dword [0x4aaa7c]
test esi, esi
je 0x407186
lock inc dword [esi + 4]
mov esi, dword [0x4aaa7c]
mov ecx, dword [0x4aaa78]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
push dword [ebp - 0x14]
push 0x800
push dword [ebp - 0x10]
push 0x492e10
push str.ServerShellPicApps
push dword [eax]
call ebx
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4071d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
test esi, esi
je 0x4071fc
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4071fc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4071fc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40753e
mov esi, dword [ebp - 0x18]
push eax
push esi
call fcn.0045d1d3
add esp, 8
test eax, eax
je 0x4072a2
mov ebx, dword [0x4aaa7c]
test ebx, ebx
je 0x407230
lock inc dword [ebx + 4]
mov ebx, dword [0x4aaa7c]
mov ecx, dword [0x4aaa78]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push str.ServerShellPicApps
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407279
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40729c
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x40729c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x40729c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp - 0x10]
call fcn.00455405
mov byte [ebp - 4], 8
add esp, 4
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4072cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4072e6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push str.shell_pic_progids
lea ecx, [ebp - 0x38]
call fcn.0041af10
cmp eax, 0x4aaa58
je 0x4074cc
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x407548
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push ecx
push str.shell_pic_progids
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call fcn.0041ad20
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.0041cab0
push 0x1000
call fcn.0045540a
push 0x1000
push 0
push eax
mov dword [ebp - 0x10], eax
call fcn.004573c0
add esp, 0x10
lea ecx, [ebp - 0x14]
mov edx, str.seConfig.ini
call fcn.00419d10
mov esi, dword [0x4aaa7c]
test esi, esi
je 0x407372
lock inc dword [esi + 4]
mov esi, dword [0x4aaa7c]
mov ecx, dword [0x4aaa78]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
push dword [ebp - 0x14]
push 0x800
push dword [ebp - 0x10]
push 0x492e10
push str.ServerShellPicProgids
push dword [eax]
call ebx
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4073c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
test esi, esi
je 0x4073e8
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4073e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4073e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x407552
mov esi, dword [ebp - 0x18]
push eax
push esi
call fcn.0045d1d3
add esp, 8
test eax, eax
je 0x407488
mov ebx, dword [0x4aaa7c]
test ebx, ebx
je 0x40741c
lock inc dword [ebx + 4]
mov ebx, dword [0x4aaa7c]
mov ecx, dword [0x4aaa78]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10c]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push str.ServerShellPicProgids
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407465
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x407488
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x407488
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x407488
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
push dword [ebp - 0x10]
call fcn.00455405
mov byte [ebp - 4], 0xc
add esp, 4
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4074b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4074cc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x38]
xor esi, esi
call fcn.0041a770
jmp 0x4074ed
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esi, 0x80004005
lea ecx, [ebp - 0x48]
call fcn.0041a770
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x407514
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
int3