Function at 0x4a4cf4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x54]
test esi, esi
je 0x4a4d19
mov eax, esi
xor edx, edx
call fcn.004e5470
test al, al
jne 0x4a4d28
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a98ac
jmp 0x4a571c
mov esi, dword [ebx]
mov eax, dword [0x5791d0]
cmp esi, dword [eax]
jne 0x4a4e42
movzx eax, word [ebx + 6]
cmp eax, 0x17
jg 0x4a4d5c
je 0x4a4dd8
sub eax, 3
je 0x4a4e17
sub eax, 3
je 0x4a4d8a
dec eax
je 0x4a4d6f
jmp 0x4a5419
sub eax, 0x1a
je 0x4a4e04
sub eax, 0x22
je 0x4a4d7b
jmp 0x4a5419
mov dword [ebx + 0xc], 1
jmp 0x4a571c
mov eax, dword [0x5796d4]
mov eax, dword [eax]
mov dword [ebx + 0xc], eax
jmp 0x4a571c
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x54]
cmp byte [esi + 0x18], 0
je 0x4a5419
mov byte [esi + 0x18], 0
mov eax, esi
call fcn.004e4ed4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
mov byte [edx + 0x18], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0x18], 0
jne 0x4a5419
push 0x585
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407b88
jmp 0x4a5419
mov eax, dword [ebp - 4]
mov cl, byte [eax + 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.0049fd88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov ecx, dword [ebp - 4]
xor edx, edx
call fcn.0049f714
jmp 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x24]
mov edx, dword [ebx + 8]
mov dword [edx], eax
jmp 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004e4ec0
cmp eax, dword [ebx + 8]
jne 0x4a5419
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a98ac
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
jmp 0x4a571c
mov eax, esi
cmp eax, 0x85
jg 0x4a4e68
je 0x4a5288
sub eax, 0xf
je 0x4a51b3
sub eax, 5
je 0x4a5101
jmp 0x4a5419
sub eax, 0x317
je 0x4a4e7f
sub eax, 0xacf7
je 0x4a50d7
jmp 0x4a5419
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
mov ecx, esi
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.004abdfc
mov edi, eax
mov dword [ebx + 0xc], edi
cmp edi, 2
je 0x4a571c
mov eax, dword [ebp - 4]
add eax, 0x2c
push eax
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0xc]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.0049efb8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov byte [eax + 0x18], 0
mov byte [eax + 0x35], 1
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x59], 0
jne 0x4a4efd
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
test eax, eax
je 0x4a571c
mov edx, dword [ebp - 4]
mov cl, byte [edx + 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
call fcn.0049fd88
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
jne 0x4a4f35
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov ecx, dword [ebp - 4]
xor edx, edx
call fcn.0049f714
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x40]
call fcn.0042a7e8
call fcn.00425b10
push eax
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004d7760
mov eax, dword [ebx + 8]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.004a0940
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_EnableMenuItem
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov ecx, eax
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0044bc1c
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x74]
mov eax, edi
xor ecx, ecx
mov edx, 1
call fcn.004a05d8
xor edx, edx
mov dl, byte [edi + 6]
imul edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x80]
add edx, edx
sub eax, edx
pop edx
sub eax, edx
push eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x78]
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004a05d8
xor edx, edx
mov dl, byte [esi + 6]
imul edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x80]
add edx, edx
sub eax, edx
pop edx
sub eax, edx
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DeleteMenu
push 0
mov eax, dword [ebp - 8]
push eax
push 0x14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407bd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov esi, dword [eax + 0x38]
test esi, esi
je 0x4a509a
mov eax, esi
mov edx, dword [0x5730a8]
call fcn.00403ee0
test al, al
je 0x4a509a
mov eax, dword [esi + 0x218]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4a50ae
push 0
mov eax, dword [ebp - 8]
push eax
push 0xf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407bd8
jmp 0x4a50ae
push 0
mov eax, dword [ebp - 8]
push eax
push 0xf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407bd8
push 0x24
mov eax, dword [ebp - 8]
push eax
push 0x318
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407bd8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DrawTextA
jmp 0x4a5419
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0x18], 0
jne 0x4a5419
push 0x405
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407b88
jmp 0x4a5419
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407ad0
test eax, eax
je 0x4a5419
mov eax, dword [ebp - 4]
cmp byte [eax + 0x90], 0
jne 0x4a5419
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp esi, dword [eax + 0x54]
je 0x4a5144
lea eax, [ebp - 0x5c]
push eax
push esi
call sub.user32.dll_ActivateKeyboardLayout
dec eax
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004e4ed4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
mov byte [edx + 0x18], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0x18], 0
jne 0x4a571c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x59], 0
jne 0x4a5179
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [0x579380]
cmp dword [eax], 6
jl 0x4a5419
mov eax, dword [0x5791e8]
cmp byte [eax], 0
je 0x4a5419
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
cmp eax, dword [edx + 0x54]
je 0x4a5419
mov dword [ebx + 0xc], 1
jmp 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407ad0
test eax, eax
je 0x4a5419
mov eax, dword [ebp - 4]
cmp byte [eax + 0x90], 0
jne 0x4a5419
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp esi, dword [eax + 0x54]
je 0x4a51f6
lea eax, [ebp - 0x5c]
push eax
push esi
call sub.user32.dll_ActivateKeyboardLayout
dec eax
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004e4ed4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
mov byte [edx + 0x18], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0x18], 0
jne 0x4a522c
mov eax, dword [0x5791e8]
cmp byte [eax], 0
je 0x4a5251
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp dword [eax + 0x54], 0
jne 0x4a5251
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407748
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407870
jmp 0x4a571c
mov eax, dword [ebx + 8]
push eax
push 0xffffffffffffffff
mov esi, dword [ebx + 4]
push esi
mov ecx, esi
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.004a0940
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x59], 0
jne 0x4a5419
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
jmp 0x4a5419
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407ad0
test eax, eax
je 0x4a5419
mov eax, dword [ebp - 4]
cmp byte [eax + 0x90], 0
jne 0x4a5419
mov eax, dword [0x5791e8]
cmp byte [eax], 0
jne 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004e4ed4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
mov byte [edx + 0x18], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0x18], 0
jne 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407a18
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x54]
cmp eax, dword [ebp - 8]
je 0x4a5320
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_ActivateKeyboardLayout
dec eax
jne 0x4a5320
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407bb0
jmp 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp byte [eax + 0x35], 0
je 0x4a5354
mov eax, dword [ebp - 4]
cmp byte [eax + 0x59], 0
jne 0x4a533d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
mov cl, byte [eax + 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.0049fd88
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_EnableMenuItem
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a5412
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.004a0940
mov dword [ebx + 0xc], eax
cmp dword [ebp - 8], 0
je 0x4a53e7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x54], 0
je 0x4a53e7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x40]
call fcn.0042a7e8
call fcn.00425b10
push eax
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
push eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004d7760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a571c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DrawTextA
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407bb0
ret
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a98ac
mov eax, dword [ebx]
cmp eax, 0x180
jge 0x4a5471
cmp eax, 0x30
jg 0x4a5455
je 0x4a5536
sub eax, 5
je 0x4a5552
sub eax, 2
je 0x4a5603
dec eax
je 0x4a569c
jmp 0x4a571c
sub eax, 0xc2
je 0x4a5527
add eax, 0xffffffc2
sub eax, 2
jb 0x4a5536
jmp 0x4a571c
cmp eax, 0x197
jg 0x4a549f
je 0x4a5527
add eax, 0xfffffe80
sub eax, 2
jb 0x4a5527
sub eax, 4
je 0x4a5518
sub eax, 8
je 0x4a54c0
jmp 0x4a571c
sub eax, 0x200
je 0x4a5580
dec eax
je 0x4a5536
add eax, 0xffff4501
sub eax, 2
jb 0x4a5536
jmp 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov esi, dword [eax + 0x38]
test esi, esi
je 0x4a571c
mov eax, esi
mov edx, dword [0x5730a8]
call fcn.00403ee0
test al, al
je 0x4a571c
cmp dword [ebx + 0xc], 0
jne 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4a571c
mov dword [ebx + 0xc], 0xffffffff
jmp 0x4a571c
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0049fcbc
jmp 0x4a571c
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0049fcbc
jmp 0x4a571c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x58], 0
jne 0x4a571c
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0049fcbc
jmp 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407ad0
test eax, eax
je 0x4a571c
push 0
push 0
push 0x85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407bd8
jmp 0x4a571c
mov eax, dword [0x579594]
cmp dword [eax], 0
je 0x4a571c
mov eax, dword [0x579594]
mov eax, dword [eax]
test byte [eax + 0x1c], 0x10
jne 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
call fcn.00407ac8
test eax, eax
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [0x579594]
mov edx, dword [edx]
cmp eax, dword [edx + 0x78]
je 0x4a55d4
mov edx, eax
mov eax, dword [0x579594]
mov eax, dword [eax]
call fcn.004f2448
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.004e4ed4
test al, al
jne 0x4a571c
call fcn.004078c8
test eax, eax
je 0x4a571c
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0049fcbc
jmp 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.0049ee74
test al, al
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp dword [eax + 0x38], 0
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [0x449208]
call fcn.00403ee0
test al, al
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov si, 0xffb8
call fcn.00403f50
test al, al
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
cmp byte [eax + 0x1a4], 0
je 0x4a571c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x54]
mov byte [ebx + 0x35], 1
mov byte [ebx + 0x4c], 1
push 0
push 0
push 0x85
mov eax, dword [ebx + 0x38]
call fcn.00453c2c
push eax
call fcn.00407bd8
jmp 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.0049ee74
test al, al
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
cmp dword [eax + 0x38], 0
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [0x449208]
call fcn.00403ee0
test al, al
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
mov si, 0xffb8
call fcn.00403f50
test al, al
je 0x4a571c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x38]
cmp byte [eax + 0x1a4], 0
je 0x4a571c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x54]
mov byte [ebx + 0x35], 1
mov byte [ebx + 0x4c], 0
push 0
push 0
push 0x85
mov eax, dword [ebx + 0x38]
call fcn.00453c2c
push eax
call fcn.00407bd8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret