Function at 0x402230
Capabilities:
Access peb ldr_data
Get session user name
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41bb38
mov eax, dword fs:[0]
push eax
mov eax, 0x1494
mov dword fs:[0], esp
call fcn.00405190
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], esi
call fcn.00414403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14ac], esi
call fcn.00414403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x50], eax
mov byte [esp + 0x14ac], 1
call fcn.00414403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x14ac], 2
call fcn.00414403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x14ac], 3
call fcn.0040f1ba
mov eax, dword [ebp + 0x78]
push eax
push 0x1450
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x14b8], 4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
lea ecx, [esp + 0x54]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x4c], 0x104
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
jge 0x402327
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00401900
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test esi, esi
jne 0x40233b
xor eax, eax
jmp 0x40234f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402340
sub eax, edx
js 0x402812
cmp eax, dword [esi - 8]
jg 0x402812
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov al, byte [esp + 0x54]
test al, al
je 0x402675
mov esi, dword [esp + 0x10]
nop
push str.General
push esi
call fcn.00404af2
add esp, 8
test eax, eax
jne 0x402396
mov eax, dword [esp + 0x3c]
push esi
push eax
lea ecx, [esp + 0x3c]
call fcn.0040f3db
jmp 0x402637
mov eax, dword [edi - 4]
mov esi, dword [ebp + 0x78]
mov ecx, 1
sub ecx, eax
mov eax, dword [edi - 8]
sub eax, 0x104
or eax, ecx
jge 0x4023c1
push 0x104
lea ecx, [esp + 0x20]
call fcn.00401900
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push esi
push 0x104
push edi
push 0x41d9c0
push str.UserName
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test edi, edi
jne 0x4023e5
xor eax, eax
jmp 0x4023ff
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023f0
sub eax, edx
js 0x402812
cmp eax, dword [edi - 8]
jg 0x402812
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
mov eax, dword [edi - 0xc]
test eax, eax
je 0x402440
mov edx, dword [esp + 0x18]
push edi
push edx
call fcn.00404af2
add esp, 8
test eax, eax
je 0x402440
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040f3db
jmp 0x402633
mov esi, dword [ebp + 0x78]
mov ebp, dword [ebx - 4]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, ebp
sub eax, 0x104
or eax, ecx
jge 0x40246b
push 0x104
lea ecx, [esp + 0x24]
call fcn.00401900
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push esi
push 0x104
push ebx
push 0x41d9c0
push str.ProductCode
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test ebx, ebx
jne 0x40248f
xor eax, eax
jmp 0x4024a3
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402494
sub eax, edx
js 0x402812
cmp eax, dword [ebx - 8]
jg 0x402812
mov dword [ebx - 0xc], eax
mov byte [eax + ebx], 0
call dword [0x4250b8]
push 0
push 0
push 0xffffffffffffffff
push ebx
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi - 1]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x40250f
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40250f
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call ebp
lea ecx, [esp + 0x2c]
call fcn.00401610
xor edi, edi
jmp 0x402515
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
mov dword [esp + 0x2c], edi
je 0x40265c
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x7c]
add esi, 0x7c
test eax, eax
mov byte [esp + 0x14ac], 5
jne 0x40254c
push esi
push 0x41d9d4
push 0x17
push 0
push 0x41d9c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esi]
test eax, eax
je 0x40255e
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
push edi
push eax
call dword [ecx + 0x70]
cmp word [esp + 0x30], 0
je 0x402666
mov esi, dword [esi]
test esi, esi
je 0x402620
mov eax, dword [esi]
push 1
push edi
push esi
call dword [eax + 0x5c]
xor esi, esi
cmp eax, esi
jl 0x4025a4
mov ecx, dword [esp + 0x10]
cmp ecx, esi
je 0x402620
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x78]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
jmp 0x402620
mov dword [esp + 0x24], esi
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
test eax, eax
jne 0x40260a
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
mov byte [esp + 0x14b4], 7
call dword [ecx + 0x14]
test eax, eax
jl 0x402603
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
call fcn.004021a0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
push eax
call ebp
mov eax, dword [esp + 0x24]
cmp eax, esi
mov byte [esp + 0x14ac], 5
je 0x402620
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
mov byte [esp + 0x14b0], 4
call ebp
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402640
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
mov dword [esp + 0x10], esi
jne 0x402370
jmp 0x402675
push 0x8007000e
call fcn.00401420
push edi
mov byte [esp + 0x14b0], 4
call ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x78]
push eax
push 0x1450
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
je 0x40270e
mov al, byte [esp + 0x54]
test al, al
lea edi, [esp + 0x54]
je 0x40270e
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
xor esi, esi
test ebp, ebp
jle 0x402739
lea ecx, [ecx]
test esi, esi
jl 0x40280d
cmp esi, ebp
jge 0x40280d
mov eax, dword [esp + 0x38]
mov eax, dword [eax + esi*4]
push edi
push eax
call fcn.00404af2
add esp, 8
test eax, eax
jne 0x4026e6
push 1
push esi
lea ecx, [esp + 0x3c]
call fcn.0040f352
mov ebx, 1
mov ebp, dword [esp + 0x3c]
inc esi
cmp esi, ebp
jl 0x4026b0
test ebx, ebx
je 0x402739
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4026f8
sub eax, edx
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x4026a1
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [ebp + 0x74], 0
mov eax, dword [0x4269c0]
test eax, eax
jg 0x402739
call fcn.00416612
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x60]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x3c]
call fcn.0040f22c
lea ecx, [esp + 0x34]
mov byte [esp + 0x14ac], 3
call fcn.0040f20c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x14ac], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40277d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x14ac], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x14ac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x14ac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14a0
ret 4
call fcn.0040f16f
push 0x80070057
call fcn.00401420
int3