Function at 0x4a7c54
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x5b1cc5
call fcn.004d57f0
mov dword [ebp - 0x28], 1
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 8
xor edi, edi
xor ebx, ebx
mov byte [ebp - 0x35], 0
call fcn.00458608
mov dword [ebp - 0x28], 0x14
mov al, byte [0x5b1cb0]
cmp al, 1
jne 0x4a7cb2
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4a8310
mov dword [ebp - 0x28], 0x1e
mov byte [0x5b1cb0], 1
call sub.USER32.dll_CreatePopupMenu
mov esi, eax
mov al, byte [0x52eac2]
test al, al
jne 0x4a7cda
mov dl, byte [0x52eab2]
test dl, dl
je 0x4a7cdc
mov bl, 1
lea eax, [ebp - 0x1038]
push eax
push 1
call fcn.00452a6c
add esp, 8
lea edx, [ebp - 0x1038]
push edx
push 0
push 2
push esi
call sub.USER32.dll_AppendMenuA
push 0x5f7098
push 0x3fff
push 0x802
push esi
call sub.USER32.dll_AppendMenuA
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0
push 0x3fff
push esi
call sub.USER32.dll_SetMenuItemBitmaps
mov cl, byte [0x52e3fe]
test cl, cl
je 0x4a7e83
push 0x5f709d
push 0x400a
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x1d
call fcn.00457f98
pop ecx
push eax
push 0x1d
call fcn.00457f98
pop ecx
push eax
push 0
push 0x400a
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f70b9
push 0x3fff
push 0x800
push esi
call sub.USER32.dll_AppendMenuA
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0
push 0x3fff
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f70be
push 0x4009
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x10
call fcn.00457f98
pop ecx
push eax
push 0x10
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4009
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f70d7
push 0x3fff
push 0x800
push esi
call sub.USER32.dll_AppendMenuA
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0
push 0x3fff
push esi
call sub.USER32.dll_SetMenuItemBitmaps
mov al, byte [0x52e3f9]
test al, al
je 0x4a7e46
push 0x5f70dc
push 0x4008
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x19
call fcn.00457f98
pop ecx
push eax
push 0x19
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4008
push esi
call sub.USER32.dll_SetMenuItemBitmaps
jmp 0x4a7e77
push 0x5f70e7
push 0x4008
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x19
call fcn.00457f98
pop ecx
push eax
push 0x19
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4008
push esi
call sub.USER32.dll_SetMenuItemBitmaps
mov dword [ebp - 0x28], 0x32
jmp 0x4a8227
cmp bl, 1
jne 0x4a7f02
call sub.USER32.dll_CreatePopupMenu
mov edi, eax
push 0x5f70ef
push 0x3fff
push 2
push edi
call sub.USER32.dll_AppendMenuA
mov byte [ebp - 0x35], 1
push 0x5f70f1
push edi
push 0x10
push esi
call sub.USER32.dll_AppendMenuA
push 0x1a
call fcn.00457f98
pop ecx
push eax
push 0x1a
call fcn.00457f98
pop ecx
push eax
push 0
push edi
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f7107
push 0x3fff
push 0x800
push esi
call sub.USER32.dll_AppendMenuA
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0
push 0x3fff
push esi
call sub.USER32.dll_SetMenuItemBitmaps
mov eax, dword [0x52ede5]
cmp eax, 0xebc
jne 0x4a80a2
mov dword [ebp - 0x28], 0x50
push 0x800
lea edx, [ebp - 0x1038]
push edx
call fcn.00493104
add esp, 8
lea ecx, [ebp - 0x1038]
mov dword [ebp - 0x28], 0x64
push ecx
push 0x4002
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x12
call fcn.00457f98
pop ecx
push eax
push 0x12
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4002
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f710c
push 0x4003
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x13
call fcn.00457f98
pop ecx
push eax
push 0x13
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4003
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f7126
push 0x4006
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x14
call fcn.00457f98
pop ecx
push eax
push 0x14
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4006
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f7151
push 0x4004
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x11
call fcn.00457f98
pop ecx
push eax
push 0x11
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4004
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f7169
push 0x3fff
push 0x800
push esi
call sub.USER32.dll_AppendMenuA
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0
push 0x3fff
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f716e
push 0x4005
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x15
call fcn.00457f98
pop ecx
push eax
push 0x15
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4005
push esi
call sub.USER32.dll_SetMenuItemBitmaps
mov dword [ebp - 0x28], 0x96
cmp bl, 1
jne 0x4a8110
push 0x5f7177
push 0x4000
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x18
call fcn.00457f98
pop ecx
push eax
push 0x18
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4000
push esi
call sub.USER32.dll_SetMenuItemBitmaps
jmp 0x4a8110
mov dword [ebp - 0x28], 0xaa
push 0x5f718b
push 0x4005
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x15
call fcn.00457f98
pop ecx
push eax
push 0x15
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4005
push esi
call sub.USER32.dll_SetMenuItemBitmaps
cmp bl, 1
jne 0x4a8110
push 0x5f7194
push 0x4000
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x18
call fcn.00457f98
pop ecx
push eax
push 0x18
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4000
push esi
call sub.USER32.dll_SetMenuItemBitmaps
mov dword [ebp - 0x28], 0xb4
push 0x5f71a8
push 0x3fff
push 0x800
push esi
call sub.USER32.dll_AppendMenuA
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0
push 0x3fff
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f71ad
push 0x4009
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x10
call fcn.00457f98
pop ecx
push eax
push 0x10
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4009
push esi
call sub.USER32.dll_SetMenuItemBitmaps
push 0x5f71c6
push 0x3fff
push 0x800
push esi
call sub.USER32.dll_AppendMenuA
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0x17
call fcn.00457f98
pop ecx
push eax
push 0
push 0x3fff
push esi
call sub.USER32.dll_SetMenuItemBitmaps
mov al, byte [0x52eac1]
test al, al
jne 0x4a8227
mov dl, byte [0x52e3f9]
test dl, dl
je 0x4a81f6
push 0x5f71cb
push 0x4008
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x19
call fcn.00457f98
pop ecx
push eax
push 0x19
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4008
push esi
call sub.USER32.dll_SetMenuItemBitmaps
jmp 0x4a8227
push 0x5f71d6
push 0x4008
push 0
push esi
call sub.USER32.dll_AppendMenuA
push 0x19
call fcn.00457f98
pop ecx
push eax
push 0x19
call fcn.00457f98
pop ecx
push eax
push 0
push 0x4008
push esi
call sub.USER32.dll_SetMenuItemBitmaps
mov dword [ebp - 0x28], 0xd2
mov cl, byte [ebp - 0x35]
cmp cl, 1
jne 0x4a824d
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
push 0x4a7b60
push 0
push 0
call sub.KERNEL32.dll_CreateThread
jmp 0x4a8263
lea edx, [ebp - 0x2c]
push edx
push 0
push 0
push 0x4a7b60
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [ebp - 0x28], 0xdc
lea ecx, [ebp - 0x34]
push ecx
call sub.USER32.dll_GetCursorPos
mov dword [ebp - 0x28], 0xe6
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_SetForegroundWindow
mov dword [ebp - 0x28], 0xf0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov eax, dword [ebp - 0x34]
push eax
push 8
push esi
call sub.USER32.dll_TrackPopupMenu
mov dword [ebp - 0x28], 0xfa
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_PostMessageA
mov dword [ebp - 0x28], 0x104
push esi
call sub.USER32.dll_IsMenu
test eax, eax
je 0x4a82cf
push esi
call sub.USER32.dll_DestroyMenu
mov word [ebp - 0x14], 0
jmp 0x4a82fa
mov byte [0x5b1cb0], 0
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x1044]
mov esi, dword [ebp - 0x1040]
mov ebx, dword [ebp - 0x103c]
pop ebp
ret 4