Function at 0x4a23b0
Capabilities:
Get geographical location
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4e3f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
mov eax, dword [0x52d100]
push ebp
push esi
xor ebp, ebp
push edi
mov ecx, 0x52d100
mov dword [esp + 0x3c], ebp
mov dword [esp + 0xc], 0x52d100
call dword [eax + 4]
mov eax, dword [0x52662c]
mov dword [esp + 0x3a0], ebp
cmp eax, ebp
mov edi, 1
jne 0x4a2458
cmp dword [0x526628], ebp
jne 0x4a2458
push 0xb0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0x3a0], 1
je 0x4a242d
push ebp
mov ecx, eax
call fcn.00404bd0
jmp 0x4a242f
xor eax, eax
mov ecx, dword [0x517cd8]
mov byte [esp + 0x3a0], 0
push ecx
push 0x404ba0
mov ecx, 0x52b648
mov dword [0x526628], eax
call fcn.00402160
mov dword [0x52662c], edi
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
push ebx
mov ecx, 0x52d100
mov dword [esp + 0x3a4], 0xffffffff
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x40]
push ecx
push esi
call dword [eax + 0x7c]
mov eax, dword [esp + 0x40]
push 0x400
cmp eax, ebp
je 0x4a2494
push 4
jmp 0x4a2496
push 5
mov ebx, dword [esp + 0x3b4]
push ebx
call dword [sym.imp.USER32.dll_RemoveMenu]
mov edx, dword [0x52d140]
mov ecx, 0x52d140
mov dword [esp + 0x44], ebp
mov dword [esp + 0x10], ecx
call dword [edx + 4]
mov eax, dword [0x526620]
mov dword [esp + 0x3a4], 2
cmp eax, ebp
jne 0x4a2524
cmp dword [0x52661c], ebp
jne 0x4a2524
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x3a4], 3
je 0x4a24fa
push ebp
mov ecx, eax
call fcn.00403720
jmp 0x4a24fc
xor eax, eax
mov dword [0x52661c], eax
mov eax, dword [0x5177d4]
push eax
push 0x4036f0
mov ecx, 0x52b648
mov byte [esp + 0x3ac], 2
call fcn.00402160
mov dword [0x526620], edi
mov edx, dword [0x52d140]
mov esi, dword [0x52661c]
mov ecx, 0x52d140
mov dword [esp + 0x3a4], 0xffffffff
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x44]
push ecx
push esi
call dword [eax + 0x1bc]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x299]
mov byte [esp + 0x298], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x195]
mov byte [esp + 0x194], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x60]
lea edx, [esp + 0x298]
push eax
push ebp
push 0x42a
push ebx
mov dword [esp + 0x70], 0x30
mov dword [esp + 0x74], 0x40
mov dword [esp + 0x78], ebp
mov dword [esp + 0x94], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x194]
cmp eax, ebp
mov edi, 0x521e50
jne 0x4a25d4
mov edi, 0x521e44
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x521e40
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x29c]
push ecx
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 8
cmp eax, ebp
je 0x4a2639
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x194]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x60]
lea eax, [esp + 0x194]
push ecx
push ebp
push 0x42a
push ebx
mov dword [esp + 0x94], eax
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov edx, dword [0x52d100]
mov ecx, 0x52d100
mov dword [esp + 0x10], ecx
call dword [edx + 4]
mov eax, dword [0x52662c]
mov dword [esp + 0x3a4], 4
cmp eax, ebp
jne 0x4a26dc
cmp dword [0x526628], ebp
jne 0x4a26dc
push 0xb0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x3a4], 5
je 0x4a26ae
push ebp
mov ecx, eax
call fcn.00404bd0
jmp 0x4a26b0
xor eax, eax
mov dword [0x526628], eax
mov eax, dword [0x517cd8]
push eax
push 0x404ba0
mov ecx, 0x52b648
mov byte [esp + 0x3ac], 4
call fcn.00402160
mov dword [0x52662c], 1
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
or edi, 0xffffffff
mov ecx, 0x52d100
mov dword [esp + 0x3a4], edi
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x54]
push ecx
push esi
call dword [eax + 0x9c]
mov ebp, dword [sym.imp.USER32.dll_EnableMenuItem]
test eax, eax
jl 0x4a27e6
mov eax, dword [esp + 0x54]
cmp eax, 4
je 0x4a2782
cmp eax, 5
je 0x4a2782
push 0x403
push 2
push ebx
call ebp
push 3
push 0x41b
push ebx
call ebp
push 3
push 0x41c
push ebx
call ebp
push 3
push 0x41d
push ebx
call ebp
push 3
push 0x8007
push ebx
call ebp
push 3
push 0x41e
push ebx
call ebp
push 3
push 0x41f
push ebx
call ebp
push 3
push 0xbbd
push ebx
call ebp
push 3
push 0x803b
push ebx
call ebp
push 3
jmp 0x4a27de
push 0x400
push 2
push ebx
call ebp
push 0
push 0x41b
push ebx
call ebp
push 0
push 0x41c
push ebx
call ebp
push 0
push 0x41d
push ebx
call ebp
push 0
push 0x8007
push ebx
call ebp
push 0
push 0x41e
push ebx
call ebp
push 0
push 0x41f
push ebx
call ebp
push 0
push 0xbbd
push ebx
call ebp
push 0
push 0x803b
push ebx
call ebp
push 0
push 0x41a
push ebx
call ebp
mov eax, dword [0x52acd8]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x4c], esi
je 0x4a2812
mov edx, dword [eax]
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [edx + 0xe8]
cmp dword [esp + 0x4c], esi
jle 0x4a2812
push esi
push 0x41a
push ebx
call ebp
mov edx, dword [0x52d100]
mov ecx, 0x52d100
mov dword [esp + 0x58], esi
mov dword [esp + 0x10], ecx
call dword [edx + 4]
mov eax, dword [0x52662c]
mov dword [esp + 0x3a4], 6
cmp eax, esi
jne 0x4a2899
cmp dword [0x526628], esi
jne 0x4a2899
push 0xb0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, esi
mov byte [esp + 0x3a4], 7
je 0x4a286b
push esi
mov ecx, eax
call fcn.00404bd0
jmp 0x4a286d
xor eax, eax
mov dword [0x526628], eax
mov eax, dword [0x517cd8]
push eax
push 0x404ba0
mov ecx, 0x52b648
mov byte [esp + 0x3ac], 6
call fcn.00402160
mov dword [0x52662c], 1
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
mov ecx, 0x52d100
mov dword [esp + 0x3a4], edi
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x58]
push ecx
push esi
call dword [eax + 0xa8]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4a28db
push 0
push 0x4b0
push ebx
call ebp
push 0x400
jmp 0x4a28ea
push 3
push 0x4b0
push ebx
call ebp
push 0x403
push 5
push ebx
call ebp
push 9
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x4a2d97
push 0x403
push 9
push ebx
call ebp
mov dword [esp + 0x18], esi
mov edx, dword [0x52d100]
mov ecx, 0x52d100
mov dword [esp + 0x3a4], 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ecx
call dword [edx + 4]
mov eax, dword [0x52662c]
mov byte [esp + 0x3a4], 9
cmp eax, esi
jne 0x4a29a1
cmp dword [0x526628], esi
jne 0x4a29a1
push 0xb0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, esi
mov byte [esp + 0x3a4], 0xa
je 0x4a2973
push esi
mov ecx, eax
call fcn.00404bd0
jmp 0x4a2975
xor eax, eax
mov dword [0x526628], eax
mov eax, dword [0x517cd8]
push eax
push 0x404ba0
mov ecx, 0x52b648
mov byte [esp + 0x3ac], 9
call fcn.00402160
mov dword [0x52662c], 1
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
mov ecx, 0x52d100
mov byte [esp + 0x3a4], 8
call dword [edx + 8]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0044d310
test eax, eax
jl 0x4a2ad0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a2ad0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0x20], eax
jle 0x4a2ad0
push 0x400
push 9
push ebx
call ebp
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push 0
push edi
call esi
test eax, eax
je 0x4a2a1b
push 0x400
push 0
push edi
call esi
test eax, eax
jne 0x4a2a0d
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x38], esi
jle 0x4a2ab0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 0xc80]
lea eax, [esp + 0x1c]
mov byte [esp + 0x3a4], 0xb
lea edx, [ebp - 0xc7f]
push edx
push 0x521e38
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x34]
mov dword [esp + 0x34], 0
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4a2a81
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x1c]
push eax
push ebp
push 0
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3a4], 8
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x4a2a2d
mov ebp, dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [esp + 0x38]
push 0
add ecx, 0xc80
add esi, 0xc7f
push ecx
push esi
push 0xc80
push edi
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], esi
mov edx, dword [0x52d100]
mov ecx, 0x52d100
mov byte [esp + 0x3a4], 0xe
mov dword [esp + 0x10], ecx
call dword [edx + 4]
mov eax, dword [0x52662c]
mov byte [esp + 0x3a4], 0xf
cmp eax, esi
jne 0x4a2b66
cmp dword [0x526628], esi
jne 0x4a2b66
push 0xb0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, esi
mov byte [esp + 0x3a4], 0x10
je 0x4a2b38
push esi
mov ecx, eax
call fcn.00404bd0
jmp 0x4a2b3a
xor eax, eax
mov dword [0x526628], eax
mov eax, dword [0x517cd8]
push eax
push 0x404ba0
mov ecx, 0x52b648
mov byte [esp + 0x3ac], 0xf
call fcn.00402160
mov dword [0x52662c], 1
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
mov ecx, 0x52d100
mov byte [esp + 0x3a4], 0xe
call dword [edx + 8]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0044d1e0
test eax, eax
jl 0x4a2d3c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a2d3c
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x51c9d8
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x4a2d3c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a2d3c
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x5216e0
push eax
call dword [ecx]
test eax, eax
jl 0x4a2d3c
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4a2d3c
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4a2d3c
mov eax, dword [esp + 0x20]
test eax, eax
jg 0x4a2c3e
push 0x400
push 9
push ebx
call ebp
mov ebp, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push 0
push edi
call ebp
test eax, eax
je 0x4a2c55
push 0x400
push 0
push edi
call ebp
test eax, eax
jne 0x4a2c2e
jmp 0x4a2c55
add eax, 0xc80
push 0x5265c0
push eax
push 0x800
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], esi
jle 0x4a2d19
lea ebp, [eax + 0xc81]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x10]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x90]
push 0x104
push eax
push 2
push ecx
mov byte [esp + 0xa0], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0x90]
lea ecx, [esp + 0x34]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x521e2c
push 0x521e24
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3ac], 0x11
call sub.MFC42.DLL_CString::Replace
cmp dword [esp + 0x38], 1
jne 0x4a2ce7
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x34]
push eax
push ebp
push 0
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x34]
mov byte [esp + 0x3a4], 0xe
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
inc esi
inc ebp
cmp esi, eax
jl 0x4a2c71
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push 0
lea edx, [ecx + eax + 0xc81]
lea ecx, [esi + eax + 0xc80]
push edx
add eax, 0xc81
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov eax, dword [esp + 0x30]
mov byte [esp + 0x3a4], 0xd
test eax, eax
je 0x4a2d52
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x3a4], 0xc
test eax, eax
je 0x4a2d68
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x3a4], 8
test eax, eax
je 0x4a2d7e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3a4], 0xffffffff
test eax, eax
je 0x4a2d97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 8
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebp, eax
test ebp, ebp
je 0x4a2f76
push 0x403
push 8
push ebx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov dword [esp + 0x18], 0
mov edx, dword [0x52d100]
mov ecx, 0x52d100
mov dword [esp + 0x3a4], 0x12
mov dword [esp + 0x10], 0x52d100
call dword [edx + 4]
mov eax, dword [0x52662c]
mov byte [esp + 0x3a4], 0x13
test eax, eax
jne 0x4a2e58
mov eax, dword [0x526628]
test eax, eax
jne 0x4a2e58
push 0xb0
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x3a4], 0x14
je 0x4a2e29
mov ecx, esi
call fcn.0044bac0
mov dword [esi], vtable.CComObjectNoRef_class_CKMPPlayer_.0
jmp 0x4a2e2b
xor esi, esi
mov eax, dword [0x517cd8]
mov ecx, 0x52b648
push eax
push 0x404ba0
mov byte [esp + 0x3ac], 0x13
mov dword [0x526628], esi
call fcn.00402160
mov dword [0x52662c], 1
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
mov ecx, 0x52d100
mov byte [esp + 0x3a4], 0x12
call dword [edx + 8]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.0044d210
test eax, eax
jl 0x4a2f56
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a2f61
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0x24], eax
jle 0x4a2f56
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x3ac]
push 0x400
push 8
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push 0
push ebp
call esi
test eax, eax
je 0x4a2ee9
push 0x400
push 0
push ebp
call esi
test eax, eax
jne 0x4a2edb
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x4a2f56
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x1b58]
lea edx, [esp + 0x14]
mov byte [esp + 0x3a4], 0x15
lea ecx, [edi - 0x1b57]
push ecx
push 0x521e1c
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
xor eax, eax
cmp ebx, esi
setne al
dec eax
push ecx
and eax, 8
push edi
push eax
push ebp
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3a4], 0x12
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x4a2ef3
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x3ac]
test eax, eax
mov dword [esp + 0x3a4], 0xffffffff
je 0x4a2f76
mov edx, dword [eax]
push eax
call dword [edx + 8]
push 0xa
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
test edi, edi
je 0x4a339f
push 0x403
push 0xa
push ebx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [esp + 0x54]
cmp eax, 4
je 0x4a2fa9
cmp eax, 5
jne 0x4a339f
mov dword [esp + 0x1c], 0
mov eax, dword [0x52d100]
mov ecx, 0x52d100
mov dword [esp + 0x3a4], 0x16
mov dword [esp + 0x10], 0x52d100
call dword [eax + 4]
mov eax, dword [0x52662c]
mov byte [esp + 0x3a4], 0x17
test eax, eax
jne 0x4a3049
mov eax, dword [0x526628]
test eax, eax
jne 0x4a3049
push 0xb0
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x3a4], 0x18
je 0x4a3019
mov ecx, esi
call fcn.0044bac0
mov dword [esi], vtable.CComObjectNoRef_class_CKMPPlayer_.0
jmp 0x4a301b
xor esi, esi
mov ecx, dword [0x517cd8]
mov byte [esp + 0x3a4], 0x17
push ecx
push 0x404ba0
mov ecx, 0x52b648
mov dword [0x526628], esi
call fcn.00402160
mov dword [0x52662c], 1
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
mov ecx, 0x52d100
mov byte [esp + 0x3a4], 0x16
call dword [edx + 8]
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0044d1e0
test eax, eax
jl 0x4a3386
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4a338a
xor esi, esi
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x519340
push eax
mov byte [esp + 0x3b0], 0x19
xor ebp, ebp
call dword [ecx + 0xc]
test eax, eax
jl 0x4a319b
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4a319b
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov ebp, eax
cmp ebp, esi
jle 0x4a319b
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x38]
push 0x400
push 0xa
push ebx
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0x400
push esi
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
push edi
call esi
test eax, eax
je 0x4a310b
push 0x400
push 0
push edi
call esi
test eax, eax
jne 0x4a30fd
xor esi, esi
test ebp, ebp
jle 0x4a317a
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x90]
push ecx
push esi
mov edx, dword [eax]
push eax
call dword [edx + 0x34]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x90]
lea eax, [esp + 0x14]
push edx
push 0x521e14
push eax
mov byte [esp + 0x3b0], 0x1a
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esi + 0x1f40]
push ecx
push edx
push 0
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3a4], 0x19
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, ebp
jl 0x4a3111
mov eax, dword [esp + 0x24]
push 0
add eax, 0x1f40
add esi, 0x1f3f
push eax
push esi
push 0x1f40
push edi
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
push 0x51c9d8
mov ecx, dword [eax]
push eax
mov byte [esp + 0x3b0], 0x1c
call dword [ecx + 0xc]
test eax, eax
jl 0x4a3344
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x4a3344
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x5216e0
push eax
call dword [ecx]
test eax, eax
jl 0x4a3344
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x4a3344
lea edx, [esp + 0x18]
mov dword [esp + 0x18], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
cmp dword [esp + 0x18], esi
jle 0x4a3344
cmp ebp, esi
jg 0x4a3243
push 0x400
push 0xa
push ebx
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ebx, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push esi
push edi
call ebx
test eax, eax
je 0x4a325b
push 0x400
push esi
push edi
call ebx
test eax, eax
jne 0x4a3234
jmp 0x4a325b
lea eax, [ebp + 0x1f40]
push 0x5265c0
push eax
push 0x800
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x38], esi
jle 0x4a3317
lea ebx, [ebp + 0x1f41]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x90]
push 0x104
push eax
push 2
push ecx
mov byte [esp + 0xa0], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0x90]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x521e2c
push 0x521e24
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3ac], 0x1d
call sub.MFC42.DLL_CString::Replace
cmp dword [esp + 0x24], 1
jne 0x4a32e9
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x14]
push eax
push ebx
push 0
push edi
call dword [sym.imp.USER32.dll_AppendMenuA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3a4], 0x1c
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
inc esi
inc ebx
cmp esi, eax
jl 0x4a3273
mov ecx, dword [esp + 0x38]
push 0
lea eax, [esi + ebp + 0x1f40]
lea edx, [ecx + ebp + 0x1f41]
add ebp, 0x1f41
push edx
push eax
push ebp
push edi
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov ebx, dword [esp + 0x3ac]
xor esi, esi
mov eax, dword [esp + 0x30]
mov byte [esp + 0x3a4], 0x1b
cmp eax, esi
je 0x4a335a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x3a4], 0x19
cmp eax, esi
je 0x4a3370
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x3a4], 0x16
cmp eax, esi
je 0x4a3386
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x3a4], 0xffffffff
je 0x4a339f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [0x52d100]
mov ecx, 0x52d100
mov dword [esp + 0x10], ecx
call dword [eax + 4]
mov eax, dword [0x52662c]
mov dword [esp + 0x3a4], 0x1e
test eax, eax
jne 0x4a3468
mov eax, dword [0x526628]
test eax, eax
jne 0x4a3468
push 0xb0
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x3a4], 0x1f
je 0x4a3403
mov ecx, esi
call fcn.0044bac0
mov dword [esi], vtable.CComObjectNoRef_class_CKMPPlayer_.0
jmp 0x4a3405
xor esi, esi
mov ecx, dword [0x52b650]
mov edi, dword [0x517cd8]
mov dword [0x526628], esi
xor esi, esi
lea ebp, [ecx - 1]
mov byte [esp + 0x3a4], 0x1e
test ebp, ebp
mov dword [esp + 0x24], 0x404ba0
jl 0x4a344b
lea edx, [esp + 0x38]
push esi
push edx
mov ecx, 0x52b648
call fcn.00408f40
cmp edi, dword [esp + 0x3c]
jge 0x4a344b
inc esi
cmp esi, ebp
jle 0x4a3430
mov eax, dword [esp + 0x24]
push 1
push edi
push eax
push esi
mov ecx, 0x52b648
call fcn.00408f60
mov dword [0x52662c], 1
mov edx, dword [0x52d100]
mov esi, dword [0x526628]
mov ecx, 0x52d100
mov dword [esp + 0x3a4], 0xffffffff
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
push esi
call dword [eax + 0x94]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4a34d5
push 0xb
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov esi, eax
test esi, esi
je 0x4a34d5
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4a34c7
push 0
jmp 0x4a34c9
push 8
push 0x800e
push esi
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], 0
test eax, eax
je 0x4a350e
mov edx, dword [eax]
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [edx + 0x50]
mov edx, dword [esp + 0x50]
push 0
add edx, 0x803c
push edx
push 0x803f
push 0x803c
push ebx
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov eax, dword [0x52d140]
mov ecx, 0x52d140
mov dword [esp + 0x10], ecx
call dword [eax + 4]
mov eax, dword [0x526620]
mov dword [esp + 0x3a4], 0x20
test eax, eax
jne 0x4a35e9
mov eax, dword [0x52661c]
test eax, eax
jne 0x4a35e9
push 0x24
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x3a4], 0x21
je 0x4a3584
mov ecx, esi
call fcn.0042ca70
mov dword [esi], vtable.CComObjectNoRef_class_CKMPConfigMngr_.3.0
mov dword [esi + 4], vtable.CComObjectNoRef_class_CKMPConfigMngr_.2.0
mov dword [esi + 8], vtable.CComObjectNoRef_class_CKMPConfigMngr_.1.0
mov dword [esi + 0xc], vtable.CComObjectNoRef_class_CKMPConfigMngr_.0
jmp 0x4a3586
xor esi, esi
mov ecx, dword [0x52b650]
mov edi, dword [0x5177d4]
mov dword [0x52661c], esi
xor esi, esi
lea ebp, [ecx - 1]
mov byte [esp + 0x3a4], 0x20
test ebp, ebp
mov ebx, 0x4036f0
jl 0x4a35c9
lea edx, [esp + 0x38]
push esi
push edx
mov ecx, 0x52b648
call fcn.00408f40
cmp edi, dword [esp + 0x3c]
jge 0x4a35c9
inc esi
cmp esi, ebp
jle 0x4a35ae
push 1
push edi
push ebx
push esi
mov ecx, 0x52b648
call fcn.00408f60
mov ebx, dword [esp + 0x3ac]
mov dword [0x526620], 1
mov eax, dword [0x52d140]
mov ebp, dword [0x52661c]
mov ecx, 0x52d140
mov dword [esp + 0x3a4], 0xffffffff
call dword [eax + 8]
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x4a3616
mov ecx, dword [ebp]
push ebp
call dword [ecx + 4]
test ebp, ebp
mov dword [esp + 0x3a4], 0x22
je 0x4a365c
mov edx, dword [ebp]
lea eax, [esp + 0x5c]
push eax
push ebp
call dword [edx + 0x44]
push 5
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
test eax, eax
je 0x4a365c
mov ecx, dword [esp + 0x5c]
push 0
add ecx, 0x4b2
push ecx
push 0x4b6
push 0x4b2
push eax
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov eax, dword [0x52c628]
test eax, eax
jne 0x4a36ee
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
xor edi, edi
cmp esi, edi
je 0x4a369c
mov dword [esi + 4], edi
mov ecx, 0x52c580
mov byte [esp + 0x3a4], 0x24
mov dword [esi], vtable.ATL::CComObject_class_CMainMenuBuilder_.0
call fcn.0049e4f0
jmp 0x4a369e
xor esi, esi
cmp esi, edi
mov byte [esp + 0x3a4], 0x22
je 0x4a3808
mov edx, dword [esi]
lea eax, [esp + 0x24]
push eax
push 0x51a328
push esi
call dword [edx]
mov esi, eax
cmp esi, edi
jge 0x4a37ec
mov eax, dword [0x52c628]
cmp eax, edi
je 0x4a36d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
mov dword [0x52c628], edi
jge 0x4a36ee
cmp esi, 0x80004002
je 0x4a36ee
push esi
call fcn.004cf728
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a3832
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4a3832
mov eax, dword [0x52c628]
test eax, eax
je 0x4a3858
push 0x12
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [0x52c628]
mov esi, eax
test ecx, ecx
jne 0x4a3738
push 0x80004003
call fcn.004cf728
mov ecx, dword [0x52c628]
mov edx, dword [ecx]
push 0
push esi
call dword [edx + 0xc]
mov ecx, dword [0x52c628]
test ecx, ecx
jne 0x4a375a
push 0x80004003
call fcn.004cf728
mov ecx, dword [0x52c628]
mov eax, dword [ecx]
push 1
push esi
call dword [eax + 0xc]
mov ecx, dword [0x52c628]
test ecx, ecx
jne 0x4a377c
push 0x80004003
call fcn.004cf728
mov ecx, dword [0x52c628]
mov edx, dword [ecx]
push 2
push esi
call dword [edx + 0xc]
mov ecx, dword [0x52c628]
test ecx, ecx
jne 0x4a379e
push 0x80004003
call fcn.004cf728
mov ecx, dword [0x52c628]
mov eax, dword [ecx]
push 3
push esi
call dword [eax + 0xc]
mov ecx, dword [0x52c628]
test ecx, ecx
jne 0x4a37c0
push 0x80004003
call fcn.004cf728
mov ecx, dword [0x52c628]
mov edx, dword [ecx]
push 4
push esi
call dword [edx + 0xc]
mov ecx, dword [0x52c628]
test ecx, ecx
jne 0x4a37e2
push 0x80004003
call fcn.004cf728
mov ecx, dword [0x52c628]
mov eax, dword [ecx]
push 5
push esi
call dword [eax + 0xc]
jmp 0x4a3858
mov eax, dword [0x52c628]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x4a36d6
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x4a36d6
mov eax, dword [0x52c628]
cmp eax, edi
je 0x4a36ee
test eax, eax
mov dword [0x52c628], 0
je 0x4a36ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4a36ee
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push 0x11
push ebx
call esi
push 0x400
push 0x11
push ebx
call esi
push 0x400
push 0x11
push ebx
call esi
jmp 0x4a385e
mov esi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0xd
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.004a45d0
add esp, 4
test eax, eax
jne 0x4a387e
push 0x400
push 0xd
push ebx
call esi
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4a3890
push 0x400
push 6
push ebx
call esi
push ebx
call fcn.004028f0
add esp, 4
mov esi, eax
test ebp, ebp
mov dword [esp + 0x3a4], 0xffffffff
pop ebx
je 0x4a38b2
mov ecx, dword [ebp]
push ebp
call dword [ecx + 8]
mov ecx, dword [esp + 0x398]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x398
ret