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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 8]
sub esp, 0x54
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
call fcn.0044363a
test al, al
je case.0x458ac0.21
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov edi, dword [edx]
mov eax, dword [esi + 0x74]
mov edx, dword [eax + ecx*4]
mov ebx, dword [edx]
mov dl, byte [ebx + 0x78]
movzx ecx, dl
add ecx, 0xfffffffe
cmp ecx, 0x1b
ja case.0x458ac0.4
movzx ecx, byte [ecx + 0x4590d5]
jmp dword [ecx*4 + 0x45909d]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 3
cmp dword [esi + 0x84], ecx
mov dword [esp + 0xc], ecx
jl 0x458b30
lea ebx, [ebx]
mov edx, dword [esi + 0x74]
mov eax, dword [edx + ecx*4]
cmp dword [eax], 0
je 0x458b23
mov eax, dword [eax]
mov edx, dword [eax + 8]
cmp edx, dword [ebx + 8]
jne 0x458b23
mov dl, byte [eax + 0x78]
cmp dl, 0xf
je 0x458b14
cmp dl, 0xe
je 0x458b14
mov dword [eax + 8], 0
jmp 0x458b23
mov eax, dword [esp + 0xc]
push eax
push esi
call fcn.00456947
mov ecx, dword [esp + 0xc]
inc ecx
cmp ecx, dword [esi + 0x84]
mov dword [esp + 0xc], ecx
jle 0x458ae9
mov ecx, dword [ebx + 8]
mov eax, dword [edi + 0x18c]
cmp ecx, eax
jne 0x458b53
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [edi + 0x18c], 0
jmp 0x459048
push ecx
call dword [sym.imp.USER32.dll_DestroyMenu]
jmp 0x459048
cmp dl, 0xe
jne 0x458bf7
push 0x2c
lea ecx, [esp + 0x38]
push 0
push ecx
mov dword [esp + 0x3c], 0x30
call fcn.00414350
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 8]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x44], 4
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x458bf7
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
test eax, eax
je 0x458bf7
mov eax, 3
cmp dword [esi + 0x84], eax
mov dword [esp + 0xc], eax
jl 0x458bf7
mov edx, dword [esi + 0x74]
mov ecx, dword [edx + eax*4]
cmp dword [ecx], 0
je 0x458bea
mov ecx, dword [ecx]
mov edx, dword [esp + 0x10]
cmp dword [ecx + 8], edx
jne 0x458bea
cmp byte [ecx + 0x78], 0xf
jne 0x458bea
mov eax, dword [esp + 0xc]
push eax
push esi
call fcn.00456947
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [esi + 0x84]
mov dword [esp + 0xc], eax
jle 0x458bbf
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 8]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_DeleteMenu]
test eax, eax
jne 0x458c1d
mov ecx, dword [edi + 0x188]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [edi + 0x188]
test eax, eax
je 0x458c53
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x458c53
mov edx, dword [edi]
push eax
push edx
call dword [sym.imp.USER32.dll_SetMenu]
mov eax, dword [edi + 0x188]
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [edi + 0x188], 0
mov ecx, dword [edi]
push ecx
call dword [sym.imp.USER32.dll_DrawMenuBar]
jmp 0x459048
mov eax, dword [esi + 0x84]
cmp eax, 3
mov dword [esp + 0xc], eax
jl 0x458c9d
mov edx, dword [esi + 0x74]
mov ecx, dword [edx + eax*4]
cmp dword [ecx], 0
je 0x458c93
mov ecx, dword [ecx]
cmp byte [ecx + 0x78], 0xb
jne 0x458c93
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00458a69
mov eax, dword [esp + 0xc]
dec eax
cmp eax, 3
mov dword [esp + 0xc], eax
jge 0x458c70
xor eax, eax
or ecx, 0xffffffff
mov dword [edi + 0x174], eax
mov dword [edi + 0x178], ecx
mov dword [edi + 0x17c], ecx
mov dword [edi + 0x180], eax
mov byte [edi + 0x184], al
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x459048
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
jmp 0x459048
movzx edx, byte [ebx + 0x7b]
mov eax, dword [edi + 0x174]
mov ecx, dword [edi + 0x17c]
push 0
push edx
push 0x1308
push eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x174]
push ecx
push esi
call fcn.004436c0
mov edx, dword [esi + 0x74]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x458d34
movzx ecx, word [ebx + 0x70]
cmp cx, 0xffff
je 0x458d34
movsx edx, cx
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov eax, 3
cmp dword [esi + 0x84], eax
mov dword [esp + 0xc], eax
jl 0x458e10
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + eax*4]
cmp dword [eax], 0
je 0x458dfb
mov eax, dword [eax]
mov cl, byte [eax + 0x7b]
cmp cl, 0xff
je 0x458dfb
mov dl, byte [ebx + 0x7b]
cmp cl, dl
jne 0x458d83
cmp byte [eax + 0x78], 0xb
je 0x458d81
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00458a69
jmp 0x458dfb
cmp cl, dl
jbe 0x458d88
dec byte [eax + 0x7b]
mov eax, dword [esi + 0x74]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
cmp byte [eax + 0x78], 0xb
jne 0x458dfb
movzx ecx, word [ebx + 0x70]
test cx, cx
jl 0x458dfb
movzx eax, word [eax + 0x70]
test ax, ax
jl 0x458dfb
cmp ax, cx
jle 0x458dfb
mov eax, dword [esi + 0x74]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
dec word [eax + 0x70]
mov eax, dword [esi + 0x74]
mov dword [esp + 0x30], 2
lea eax, [eax + ecx*4]
mov ecx, dword [eax]
mov edx, dword [ecx]
movsx ecx, word [edx + 0x70]
mov dword [esp + 0x44], ecx
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, dword [edi + 0x174]
lea edx, [esp + 0x30]
push edx
movzx edx, byte [ecx + 0x7b]
push edx
push 0x133d
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [esi + 0x84]
mov dword [esp + 0xc], eax
jle 0x458d49
movzx ecx, byte [ebx + 0x7b]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jne 0x458e26
cmp eax, dword [edi + 0x178]
jne 0x458e3d
jmp 0x458e38
mov dword [edi + 0x17c], 0xffffffff
movzx edx, byte [ebx + 0x7b]
cmp eax, edx
jle 0x458e3d
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
push eax
push edi
push esi
mov byte [ebx + 0x7b], 0xff
call fcn.004425b8
dec dword [edi + 0x178]
mov dword [edi + 0x180], 0
jmp 0x459048
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x458e70
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x458e7e
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov eax, 3
cmp dword [esi + 0x84], eax
mov dword [esp + 0xc], eax
jl 0x458ece
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + eax*4]
cmp dword [ecx], 0
je 0x458ec1
mov ecx, dword [ecx]
mov edx, dword [ecx + 4]
cmp edx, dword [edi + 4]
jne 0x458ec1
cmp byte [ecx + 0x78], 0x14
jne 0x458ec1
mov ecx, dword [ecx + 0x30]
cmp ecx, dword [ebx]
jne 0x458ec1
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00458a69
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [esi + 0x84]
mov dword [esp + 0xc], eax
jle 0x458e8f
mov eax, dword [ebx]
push eax
jmp 0x459042
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x18]
push edx
push 0xffffffffffffffff
push 0x1053
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je case.0x458ac0.21
push 0
push eax
mov eax, dword [ebx + 0x30]
push 0x1008
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x459048
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x30]
push ecx
push 0
push 0x1101
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x459048
push ebx
push edi
call fcn.00434fd6
mov eax, dword [ebx]
push eax
jmp 0x459042
mov ecx, 3
cmp dword [esi + 0x84], ecx
jl case.0x458ac0.4
add eax, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [eax]
cmp dword [eax], 0
je 0x458f7a
mov eax, dword [eax]
mov edx, dword [eax + 4]
cmp edx, dword [edi + 4]
jne 0x458f7a
cmp byte [eax + 0x78], 3
jne 0x458f7a
mov eax, dword [eax]
cmp eax, dword [ebx + 0x30]
je 0x458f93
mov eax, dword [esp + 0x10]
inc ecx
add eax, 4
cmp ecx, dword [esi + 0x84]
mov dword [esp + 0x10], eax
jle 0x458f5c
jmp case.0x458ac0.4
mov edx, dword [esi + 0x74]
mov eax, dword [edx + ecx*4]
mov eax, dword [eax]
movsx ecx, word [eax + 0x76]
movsx edx, word [eax + 0x74]
push 0
push ecx
movsx ecx, word [eax + 0x72]
push edx
movsx edx, word [eax + 0x70]
mov eax, dword [eax]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
jmp case.0x458ac0.4
mov eax, dword [edi + 0x1b0]
test eax, eax
jle 0x458fd8
cmp dword [ebp + 8], eax
jne 0x458fd8
mov dword [edi + 0x1b0], 0
mov edx, dword [ebx]
push edx
jmp 0x459042
push edi
push ebx
push esi
call fcn.00456498
jmp 0x459048
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x458ff5
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov eax, 3
cmp dword [esi + 0x84], eax
mov dword [esp + 0xc], eax
jl case.0x458ac0.4
lea ecx, [ecx]
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + eax*4]
cmp dword [ecx], 0
je 0x459032
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x30]
cmp edx, dword [ebx]
jne 0x459032
cmp byte [ecx + 0x78], 0x11
jne 0x459032
mov eax, dword [esp + 0xc]
push eax
push esi
call fcn.00456947
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [esi + 0x84]
mov dword [esp + 0xc], eax
jle 0x459009
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x459056
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x459064
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [ebx + 0x54]
test ebx, ebx
je 0x459072
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edx, dword [esp + 0x14]
cmp edx, dword [edi + 0x1c]
jne 0x459082
mov dword [edi + 0x1c], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.00456947
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4