Function at 0x4086a0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44ca6e
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x466720]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466720]
xor eax, esp
push eax
lea eax, [esp + 0x46c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x480]
mov eax, dword [ebx]
mov esi, dword [esp + 0x48c]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, ebx
mov dword [esp + 0x38], esi
call edx
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [0x46db70]
xor ebp, ebp
cmp eax, ebp
jne 0x40872f
push 0x20
call fcn.0040f7ee
add esp, 4
cmp eax, ebp
je 0x408728
mov dword [eax], ebp
jmp 0x40872a
xor eax, eax
mov dword [0x46db70], eax
cmp esi, ebp
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x18], ecx
jne 0x408740
mov eax, dword [eax + 0x18]
push eax
jmp 0x408741
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x9c
call fcn.0040f7ee
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov dword [esp + 0x474], ebp
je 0x40876e
push eax
call fcn.00409de0
mov edi, eax
jmp 0x408770
xor edi, edi
mov eax, dword [esp + 0x484]
cmp eax, ebp
mov dword [esp + 0x474], 0xffffffff
mov dword [esp + 0x20], edi
je 0x408795
mov dword [edi + 0x84], eax
jmp 0x40887d
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
test eax, eax
je 0x40887d
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
mov esi, 0x45a124
call eax
mov cx, word [eax]
cmp cx, word [esi]
jne 0x4087da
cmp cx, bp
je 0x4087d6
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x4087da
add eax, 4
add esi, 4
cmp cx, bp
jne 0x4087b4
xor eax, eax
jmp 0x4087df
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x408879
call fcn.00413d7f
mov eax, dword [eax + 8]
push 0x87
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x104
lea ecx, [esp + 0x264]
push ecx
push ebp
mov dword [edi + 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x260]
push 0x5c
push edx
call fcn.0042fef6
mov word [eax + 2], bp
push 0x206
lea eax, [esp + 0x66]
push ebp
push eax
mov word [esp + 0x6c], bp
call fcn.00431f40
lea ecx, [esp + 0x274]
push ecx
lea edx, [esp + 0x70]
push str._sConfig.ini
push edx
call fcn.0042f747
add esp, 0x20
lea eax, [esp + 0x58]
push eax
push 1
push str.bBottomAdverUseByUser
push str.ControlConf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne cl
mov byte [edi + 0x98], cl
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x488]
mov eax, dword [esp + 0x34]
cmp eax, ebp
mov dword [edi + 0x94], edx
mov dword [edi + 0x88], esi
jne 0x408910
push ebp
push 0x459484
mov esi, edi
call fcn.004011a0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x47c]
mov ebx, dword [esp + 0x14]
push eax
push ebp
mov dword [edi + 0x54], ebp
mov dword [edi + 0x78], ebp
push 0xc00
mov dword [edi + 0x7c], ebp
mov ecx, dword [ebx + 4]
push esi
push ecx
call dword [sym.imp.USER32.dll_InsertMenuW]
test eax, eax
jne 0x4088e9
push edi
call fcn.00409ec0
push edi
call fcn.0040f819
add esp, 4
xor eax, eax
jmp 0x408d31
cmp dword [ebx + 8], ebp
je 0x408904
mov edx, dword [ebx + 4]
push edi
push ebp
push 0xd00
push esi
push edx
call dword [sym.imp.USER32.dll_ModifyMenuW]
test eax, eax
je 0x4088e2
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x20]
jmp 0x408d23
cmp eax, 0xffffffff
jne 0x408b87
push 0x24
call fcn.0040f7ee
add esp, 4
cmp eax, ebp
je 0x40895c
xor ecx, ecx
mov edx, 0x14
mov dword [eax + 4], ecx
mov dword [eax], vtable.CMenuEx.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0xa
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], 6
mov dword [eax + 0x18], 0xfa
mov dword [eax + 0x20], ecx
mov ebp, eax
jmp 0x40895e
xor ebp, ebp
mov esi, ebp
call fcn.004083e0
mov dword [ebp + 8], 1
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
push ebp
call fcn.004084d0
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [0x46db70]
test eax, eax
mov dword [esp + 0x3c], 0x1c
mov dword [esp + 0x40], 2
jne 0x4089cf
push 0x20
call fcn.0040f7ee
add esp, 4
test eax, eax
je 0x4089c8
mov dword [eax], 0
jmp 0x4089ca
xor eax, eax
mov dword [0x46db70], eax
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x3c]
mov dword [esp + 0x4c], ecx
mov eax, dword [ebp + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_SetMenuInfo]
mov ebx, dword [esp + 0x1c]
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4089f0
sub eax, edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
sar eax, 1
push eax
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x18]
cmp dword [esp + 0x2c], esi
jg 0x408a41
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408a23
sub eax, edx
sar eax, 1
push eax
push ebx
lea esi, [edi + 0x1c]
call fcn.004011a0
jmp 0x408ad8
push 0x206
lea ecx, [esp + 0x266]
push 0
push ecx
mov word [esp + 0x26c], 0
call fcn.00431f40
add esp, 0xc
lea edx, [esp + 0x260]
push edx
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00408d60
lea eax, [esp + 0x260]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408a81
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x264]
push ecx
lea esi, [edi + 0x1c]
call fcn.004011a0
lea eax, [esp + 0x260]
lea edx, [eax + 2]
jmp 0x408ab0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408ab0
mov ecx, dword [esp + 0x18]
sub eax, edx
lea edx, [esp + 0x2c]
push edx
sar eax, 1
push eax
lea eax, [esp + 0x268]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x10]
add edx, dword [esp + 0x2c]
add edx, dword [eax + 0xc]
mov dword [edi + 0x60], edx
mov ecx, dword [eax + 0x14]
mov dword [edi + 0x64], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0x68], edx
mov eax, dword [edi + 0x64]
sub eax, dword [edi + 0x5c]
sub eax, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0x68]
add eax, dword [esp + 0x2c]
mov ecx, dword [edi + 0x6c]
mov dword [edi + 0x70], eax
add ecx, dword [esp + 0x30]
mov eax, ebx
mov dword [edi + 0x74], ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408b20
sub eax, edx
sar eax, 1
push eax
push ebx
mov esi, edi
call fcn.004011a0
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x47c]
mov dword [edi + 0x54], 0xffffffff
push ebx
mov dword [edi + 0x7c], ebp
mov eax, dword [ebp + 4]
push eax
mov eax, dword [edx + 4]
push 0x410
push esi
push eax
call dword [sym.imp.USER32.dll_InsertMenuW]
test eax, eax
je 0x4088e2
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], 0
je 0x408d1c
mov ebp, dword [ebp + 4]
push edi
push ebp
push 0x510
jmp 0x408d09
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x408b96
mov ebx, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
sar eax, 1
push eax
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x18]
cmp dword [esp + 0x24], esi
jg 0x408bee
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x408bd0
sub eax, edx
sar eax, 1
push eax
push ebx
lea esi, [edi + 0x1c]
call fcn.004011a0
jmp 0x408c69
push 0x206
lea ecx, [esp + 0x5e]
push ebp
push ecx
mov word [esp + 0x64], bp
call fcn.00431f40
add esp, 0xc
lea edx, [esp + 0x58]
push edx
push esi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00408d60
lea eax, [esp + 0x58]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x408c20
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x5c]
push ecx
lea esi, [edi + 0x1c]
call fcn.004011a0
lea eax, [esp + 0x58]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x408c44
mov ecx, dword [esp + 0x18]
sub eax, edx
lea edx, [esp + 0x24]
push edx
sar eax, 1
push eax
lea eax, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x408c70
sub eax, edx
sar eax, 1
push eax
push ebx
mov esi, edi
call fcn.004011a0
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov dword [edi + 0x54], ebx
mov dword [edi + 0x78], ebp
mov dword [edi + 0x7c], ebp
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
lea edx, [ecx + 0x20]
mov dword [edi + 0x60], edx
mov edx, dword [eax + 0x14]
mov dword [edi + 0x64], edx
mov eax, dword [eax + 0xc]
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x64]
sub eax, dword [edi + 0x5c]
sub eax, esi
cdq
sub eax, edx
mov edx, dword [edi + 0x68]
add edx, ecx
mov ecx, dword [esp + 0x1c]
push ecx
sar eax, 1
push ebx
mov dword [edi + 0x6c], eax
add eax, esi
mov esi, dword [esp + 0x484]
mov dword [edi + 0x70], edx
mov edx, dword [esp + 0x1c]
push 0x400
mov dword [edi + 0x74], eax
mov eax, dword [edx + 4]
push esi
push eax
call dword [sym.imp.USER32.dll_InsertMenuW]
test eax, eax
je 0x4088e2
mov eax, dword [esp + 0x14]
cmp dword [eax + 8], ebp
je 0x408d1c
push edi
push ebx
push 0x500
mov ecx, dword [eax + 4]
push esi
push ecx
call dword [sym.imp.USER32.dll_ModifyMenuW]
test eax, eax
je 0x4088e2
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 0x20]
lea ebx, [esp + 0x20]
call fcn.00409900
mov eax, 1
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.0042f8e0
add esp, 0x464
ret 0x14