Function at 0x47b440
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x61a786
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 8]
push 0
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
xor ebx, ebx
push 0x30
lea ecx, [esp + 0x38]
mov edi, eax
push ebx
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
call fcn.005f7e70
mov ecx, dword [esi + 0x20c]
mov esi, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
add esp, 0xc
lea eax, [esp + 0x34]
push eax
push 1
push ecx
lea edx, [esp + 0x7c]
mov ebp, 0x10
push edi
mov dword [esp + 0x44], 0x2c
mov dword [esp + 0x48], ebp
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], 0x104
call esi
test eax, eax
je 0x47b532
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
mov ebx, 0x800
jmp 0x47b4e0
test dword [esp + 0x3c], ebx
jne 0x47b52e
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20c]
mov ecx, dword [esp + 0x20]
push 0x400
push eax
push ecx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x74]
mov dword [esp + 0x5c], edx
mov edx, dword [ecx + 0x20c]
push 1
push edx
push eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x6c], 0x104
call esi
test eax, eax
jne 0x47b4e0
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
add ecx, 0x250
push edx
call fcn.00462780
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x17c], 0
je 0x47b825
sub eax, ecx
sar eax, 1
cmp eax, 0x3c
jbe 0x47b660
push ecx
mov ebp, ecx
call fcn.0051e4f6
mov esi, eax
sub esi, ebp
sar esi, 1
lea eax, [ebp + esi*2]
push eax
call fcn.0051e486
mov edi, eax
sub edi, ebp
sar edi, 1
lea ecx, [ebp + edi*2]
push ecx
call fcn.0051e486
sub eax, ebp
add esp, 0xc
sar eax, 1
cmp edi, esi
jbe 0x47b65c
cmp eax, edi
jbe 0x47b65c
push 3
push 0x638de8
sub edi, esi
sub edi, 1
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.00412d60
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub edx, ecx
sar edx, 1
add esi, 4
cmp edx, 0x3c
jbe 0x47b660
mov edi, edi
lea eax, [ecx + esi*2]
push eax
mov ebp, ecx
call fcn.0051e486
mov edi, eax
sub edi, ebp
sar edi, 1
lea ecx, [ebp + edi*2]
push ecx
call fcn.0051e486
sub eax, ebp
add esp, 8
sar eax, 1
cmp edi, esi
jbe 0x47b65c
cmp eax, edi
jbe 0x47b65c
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, edx
sub eax, ecx
sar eax, 1
sub edi, esi
sub eax, esi
cmp edi, eax
jbe 0x47b622
mov edi, eax
test edi, edi
je 0x47b651
sub eax, edi
lea eax, [eax + eax + 2]
push eax
lea edx, [edi + esi]
lea edx, [ecx + edx*2]
push edx
lea eax, [ecx + esi*2]
push eax
call fcn.005f8630
mov ecx, dword [esp + 0x24]
add esp, 0xc
neg edi
lea edx, [ecx + edi*2]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
sub edx, ecx
sar edx, 1
cmp edx, 0x3c
ja 0x47b5e0
jmp 0x47b660
mov ecx, dword [esp + 0x14]
xor eax, eax
lea ebp, [ebx + 1]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, 0x6575cc
lea edx, [ebp + 0xc34f]
mov dword [esp + 0x38], 0x13
mov dword [esp + 0x44], edx
mov edi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
cmp ebx, 0xa
mov byte [esp + 0x17c], 1
jge 0x47b6bf
mov eax, ebp
cdq
mov esi, 0xa
idiv esi
push ecx
lea eax, [esp + 0x2c]
push edx
push str._d__s
push eax
call fcn.0051905c
add esp, 0x10
jmp 0x47b70c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b6c2
sub ecx, edx
sar ecx, 1
lea esi, [ecx + ecx]
sar esi, 1
je 0x47b70c
push 0
push esi
lea ecx, [esp + 0x30]
call fcn.00518d09
mov eax, dword [esp + 0x28]
cmp eax, 0x6575cc
je 0x47b70c
add esi, esi
push esi
push edi
push eax
call fcn.005f7b00
mov ecx, dword [esp + 0x34]
lea eax, [esi + ecx]
mov dword [esp + 0x38], eax
add esp, 0xc
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x47b77c
mov edx, dword [esp + 0x28]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.0051b523
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
sub ecx, eax
add esp, 0xc
add ecx, 1
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x20c]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x24]
push 1
add ecx, ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_InsertMenuItemA]
test eax, eax
mov eax, dword [esp + 0x64]
je 0x47b830
cmp eax, 0x6575c8
je 0x47b7ba
push eax
call fcn.005f7371
add esp, 4
jmp 0x47b7ba
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub ecx, eax
sar ecx, 1
add ecx, 1
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x20c]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x24]
push 1
add ecx, ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_InsertMenuItemW]
test eax, eax
je 0x47b840
mov eax, dword [esp + 0x28]
cmp eax, 0x6575cc
mov dword [esp + 0x24], ebp
je 0x47b7d2
push eax
call fcn.005f7371
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0x6575cc
mov dword [esp + 0x17c], 0xffffffff
je 0x47b7f1
push eax
call fcn.005f7371
add esp, 4
mov ecx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x18]
push eax
add ecx, 0x250
call fcn.00462780
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp ecx, eax
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x17c], 0
jne 0x47b563
cmp ecx, 0x6575cc
je 0x47b868
push ecx
jmp 0x47b860
cmp eax, 0x6575c8
je 0x47b840
push eax
call fcn.005f7371
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, 0x6575cc
je 0x47b854
push eax
call fcn.005f7371
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0x6575cc
je 0x47b868
push eax
call fcn.005f7371
add esp, 4
pop edi
pop esi
pop ebp
test ebx, ebx
pop ebx
jne 0x47b8bc
mov edx, dword [esp]
mov eax, dword [edx + 0x20c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
push 1
push eax
push ecx
mov dword [esp + 0x38], 0x13
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 3
mov dword [esp + 0x44], 0xc350
mov dword [esp + 0x58], str.Recent_file_list
mov dword [esp + 0x5c], 0x104
call dword [sym.imp.USER32.dll_InsertMenuItemA]
mov edx, dword [esp]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
add esp, 0x170
ret