Function at 0x4d9da0
Capabilities:
Set global application hook

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov dword [eax + 0x254], 0
mov ecx, dword [esi + 4]
mov dword [esi + 0x10], 1
call fcn.004d6a50
mov ecx, dword [0x569264]
mov edx, dword fs:[0x2c]
mov eax, dword [esi + 4]
push 0xa72
mov edi, dword [edx + ecx*4]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [edi + 0x178], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4d9760
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [edi + 0x174], eax
mov edx, dword [esi + 4]
mov al, byte [edx + 0x88]
test al, al
jne 0x4d9e3b
mov ebx, dword [esp + 0x124]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0xa45
push ebx
call edi
push eax
call ebp
jmp 0x4d9e56
mov ebx, dword [esp + 0x124]
push 1
push 0xa44
push ebx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [esi + 4]
mov cl, byte [eax + 0x89]
test cl, cl
jne 0x4d9e72
push 0
push 0xa46
push ebx
call edi
push eax
call ebp
jmp 0x4d9e80
push 1
push 0xa32
push ebx
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 0xa45
push ebx
call edi
mov edi, eax
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax + 0x30]
test ebp, ebp
push 0
push 0
setne cl
push ecx
push 1
push edx
push eax
push edi
call fcn.004dded0
mov eax, dword [esi + 4]
add esp, 0x1c
mov ecx, dword [eax + 0x194]
test ecx, ecx
jbe 0x4d9ecd
mov eax, dword [eax + 0x190]
test eax, eax
jne 0x4d9eea
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
jmp 0x4d9eea
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push 0x407
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0xc
push edi
call ebp
push 0xa46
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
mov eax, dword [esi + 4]
xor ecx, ecx
push 0
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x30]
test edx, edx
mov edx, dword [esi + 0x10]
push 0
setne cl
push ecx
push 1
push edx
push eax
push edi
call fcn.004dded0
mov eax, dword [esi + 4]
add esp, 0x1c
mov ecx, dword [eax + 0x1a4]
test ecx, ecx
jbe 0x4d9f49
mov eax, dword [eax + 0x1a0]
test eax, eax
jne 0x4d9f66
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
jmp 0x4d9f66
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push 0x408
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x1c]
push eax
push 0
push 0xc
push edi
call ebp
mov ecx, dword [esi + 4]
movsx dx, byte [ecx + 0x140]
push edx
push 0xa4d
mov ecx, esi
call fcn.004dd970
mov eax, dword [esi + 4]
movsx cx, byte [eax + 0x141]
push ecx
push 0xa4b
mov ecx, esi
call fcn.004dd970
mov eax, dword [esi + 4]
add eax, 0xe4
cmp byte [eax], 0
je 0x4d9fae
push eax
jmp 0x4d9fb3
push str.None_Selected
mov ebp, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0xc
push 0xa4f
push ebx
call ebp
mov eax, dword [esi + 4]
add eax, 0x120
cmp byte [eax], 0
je 0x4d9fd5
push eax
jmp 0x4d9fda
push str.None_Selected
push 0
push 0xc
push 0xa50
push ebx
call ebp
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push 0xa
push edx
mov ecx, dword [eax + 0xc8]
push ecx
call dword [sym.imp.MSVCRT.dll__itoa]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esi + 4]
push 0xa
not ecx
dec ecx
lea edx, [esp + ecx + 0x14]
mov ecx, dword [eax + 0x30]
push edx
push 0x40c
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x10]
push edx
push 0
push 0xc
push 0xa56
push ebx
call ebp
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push 0xa
push eax
mov edx, dword [ecx + 0x104]
push edx
call dword [sym.imp.MSVCRT.dll__itoa]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0xa
lea eax, [esp + ecx + 0x14]
mov ecx, dword [esi + 4]
push eax
push 0x40c
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x10]
push eax
push 0
push 0xc
push 0xa58
push ebx
call ebp
push 0
push 0
push 0x402
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4