Function at 0x50b394
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x260], esi
call fcn.0050ae26
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
je 0x50b741
push eax
mov ecx, esi
call fcn.0050ae66
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x264], esi
cmp esi, ebx
je 0x50b741
push 0x79
push dword [0x6d08a8]
call dword [sym.imp.USER32.dll_LoadMenuW]
mov dword [ebp - 0x294], eax
cmp eax, ebx
je 0x50b741
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
cmp edi, ebx
je 0x50b741
mov eax, dword [esi + 0x2c]
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
cmp eax, 1
jne 0x50b446
push 3
push 0xa028
push edi
call esi
push 3
mov ebx, 0xa02a
push ebx
push edi
call esi
push 3
push ebx
push edi
call esi
push 3
push 0xa02d
jmp 0x50b4cf
cmp eax, 2
jne 0x50b454
push 3
push 0xa029
jmp 0x50b426
cmp eax, 3
jne 0x50b46e
push eax
push 0xa028
push edi
call esi
push 3
push 0xa029
push edi
call esi
jmp 0x50b4e8
cmp eax, 4
je 0x50b4ad
cmp eax, ebx
je 0x50b4ad
cmp eax, 5
jne 0x50b4e8
push 3
push 0xa028
push edi
call esi
push 3
push 0xa029
push edi
call esi
push 3
push 0xa02f
push edi
call esi
push 3
push 0xa02b
push edi
call esi
push 3
push 0xa032
jmp 0x50b469
push 3
push 0xa029
push edi
call esi
push 3
mov ebx, 0xa02a
push ebx
push edi
call esi
push 3
push ebx
push edi
call esi
push 3
push 0xa028
push edi
call esi
push 3
push 0xa02f
push edi
call esi
push 3
push 0xa032
push edi
call esi
xor ebx, ebx
mov eax, dword [ebp - 0x264]
cmp dword [eax + 0x148c], ebx
jne 0x50b500
push 3
push 0xa02c
push edi
call esi
mov eax, dword [ebp - 0x260]
cmp dword [eax + 0xa8], ebx
jne 0x50b518
push 3
push 0xa032
push edi
call esi
push edi
lea eax, [ebp - 0x274]
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56], 0x65de84
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
call fcn.004fe313
mov edi, 0x250
push edi
lea eax, [ebp - 0x25c]
push ebx
push eax
call fcn.00402394
add esp, 0xc
push str.res:__SKIN_NEW_SKINphoneicon.png
mov dword [ebp - 0x258], 0x40
call fcn.00477f09
mov dword [ebp - 0x34], eax
mov dword [esp], str.res:__SKIN_NEW_SKINphoneicon_hover.png
call fcn.00477f09
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x25c]
push eax
push ebx
push 0xa032
push ebx
lea ecx, [ebp - 0x274]
call fcn.004fe59c
push dword [ebp - 0x34]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x28]
call esi
push edi
lea eax, [ebp - 0x25c]
push ebx
push eax
call fcn.00402394
add esp, 0xc
push str.res:__SKIN_NEW_SKINyunicon.png
mov dword [ebp - 0x258], 0x40
call fcn.00477f09
mov dword [ebp - 0x34], eax
mov dword [esp], str.res:__SKIN_NEW_SKINyunicon_hover.png
call fcn.00477f09
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x25c]
push eax
push ebx
push 0xa035
push ebx
lea ecx, [ebp - 0x274]
call fcn.004fe59c
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x28]
call esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push ebx
push ebx
push ebx
push ebx
xor esi, esi
inc esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x270]
push eax
lea eax, [ebp - 0x274]
call fcn.004fe900
mov edx, eax
cmp edx, ebx
je 0x50b72a
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x28c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x290], eax
lea eax, [edx - 0xa028]
mov dword [ebp - 0x278], ebx
cmp eax, 0xd
ja case.0x50b656.41011
jmp dword [eax*4 + 0x50b754]
mov dword [ebp - 0x28c], 0x52
jmp case.0x50b656.41011
mov dword [ebp - 0x28c], 0x51
jmp case.0x50b656.41011
mov dword [ebp - 0x28c], 0x4e
jmp case.0x50b656.41011
mov dword [ebp - 0x28c], 0x54
jmp case.0x50b656.41011
mov dword [ebp - 0x28c], 0x58
jmp case.0x50b656.41011
mov dword [ebp - 0x28c], 0x55
jmp case.0x50b656.41011
mov dword [ebp - 0x28c], 0x56
jmp case.0x50b656.41011
mov dword [ebp - 0x28c], 0x4f
mov edi, dword [ebp - 0x264]
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je case.0x50b656.41011
push dword [ebp - 0x268]
mov ecx, dword [ebp - 0x260]
mov dword [edi + 0x30], esi
call fcn.0050cb7d
jmp case.0x50b656.41011
mov dword [ebp - 0x28c], 0x50
jmp 0x50b6c7
mov dword [ebp - 0x28c], 0x4b4
jmp case.0x50b656.41011
mov dword [ebp - 0x28c], 0x57
jmp case.0x50b656.41011
mov dword [ebp - 0x28c], 0x4ce
lea eax, [ebp - 0x290]
call fcn.004fbd60
push dword [ebp - 0x294]
call dword [sym.imp.USER32.dll_DestroyMenu]
lea ecx, [ebp - 0x274]
call fcn.004a2394
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 0xc