Function at 0x458d12
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.00443663
test al, al
je case.0x458d69.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.0x458d69.4
movzx ecx, byte [ecx + 0x45937e]
jmp dword [ecx*4 + 0x459346]
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 0x458dd9
lea ebx, [ebx]
mov edx, dword [esi + 0x74]
mov eax, dword [edx + ecx*4]
cmp dword [eax], 0
je 0x458dcc
mov eax, dword [eax]
mov edx, dword [eax + 8]
cmp edx, dword [ebx + 8]
jne 0x458dcc
mov dl, byte [eax + 0x78]
cmp dl, 0xf
je 0x458dbd
cmp dl, 0xe
je 0x458dbd
mov dword [eax + 8], 0
jmp 0x458dcc
mov eax, dword [esp + 0xc]
push eax
push esi
call fcn.00456bf3
mov ecx, dword [esp + 0xc]
inc ecx
cmp ecx, dword [esi + 0x84]
mov dword [esp + 0xc], ecx
jle 0x458d92
mov ecx, dword [ebx + 8]
mov eax, dword [edi + 0x18c]
cmp ecx, eax
jne 0x458dfc
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [edi + 0x18c], 0
jmp 0x4592f1
push ecx
call dword [sym.imp.USER32.dll_DestroyMenu]
jmp 0x4592f1
cmp dl, 0xe
jne 0x458ea0
push 0x2c
lea ecx, [esp + 0x38]
push 0
push ecx
mov dword [esp + 0x3c], 0x30
call fcn.00414380
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 0x458ea0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
test eax, eax
je 0x458ea0
mov eax, 3
cmp dword [esi + 0x84], eax
mov dword [esp + 0xc], eax
jl 0x458ea0
mov edx, dword [esi + 0x74]
mov ecx, dword [edx + eax*4]
cmp dword [ecx], 0
je 0x458e93
mov ecx, dword [ecx]
mov edx, dword [esp + 0x10]
cmp dword [ecx + 8], edx
jne 0x458e93
cmp byte [ecx + 0x78], 0xf
jne 0x458e93
mov eax, dword [esp + 0xc]
push eax
push esi
call fcn.00456bf3
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [esi + 0x84]
mov dword [esp + 0xc], eax
jle 0x458e68
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 0x458ec6
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 0x458efc
push eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jne 0x458efc
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 0x4592f1
mov eax, dword [esi + 0x84]
cmp eax, 3
mov dword [esp + 0xc], eax
jl 0x458f46
mov edx, dword [esi + 0x74]
mov ecx, dword [edx + eax*4]
cmp dword [ecx], 0
je 0x458f3c
mov ecx, dword [ecx]
cmp byte [ecx + 0x78], 0xb
jne 0x458f3c
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00458d12
mov eax, dword [esp + 0xc]
dec eax
cmp eax, 3
mov dword [esp + 0xc], eax
jge 0x458f19
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 0x4592f1
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
jmp 0x4592f1
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.004436e9
mov edx, dword [esi + 0x74]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x458fdd
movzx ecx, word [ebx + 0x70]
cmp cx, 0xffff
je 0x458fdd
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 0x4590b9
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + eax*4]
cmp dword [eax], 0
je 0x4590a4
mov eax, dword [eax]
mov cl, byte [eax + 0x7b]
cmp cl, 0xff
je 0x4590a4
mov dl, byte [ebx + 0x7b]
cmp cl, dl
jne 0x45902c
cmp byte [eax + 0x78], 0xb
je 0x45902a
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00458d12
jmp 0x4590a4
cmp cl, dl
jbe 0x459031
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 0x4590a4
movzx ecx, word [ebx + 0x70]
test cx, cx
jl 0x4590a4
movzx eax, word [eax + 0x70]
test ax, ax
jl 0x4590a4
cmp ax, cx
jle 0x4590a4
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 0x458ff2
movzx ecx, byte [ebx + 0x7b]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jne 0x4590cf
cmp eax, dword [edi + 0x178]
jne 0x4590e6
jmp 0x4590e1
mov dword [edi + 0x17c], 0xffffffff
movzx edx, byte [ebx + 0x7b]
cmp eax, edx
jle 0x4590e6
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.00442637
dec dword [edi + 0x178]
mov dword [edi + 0x180], 0
jmp 0x4592f1
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x459119
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x459127
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov eax, 3
cmp dword [esi + 0x84], eax
mov dword [esp + 0xc], eax
jl 0x459177
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + eax*4]
cmp dword [ecx], 0
je 0x45916a
mov ecx, dword [ecx]
mov edx, dword [ecx + 4]
cmp edx, dword [edi + 4]
jne 0x45916a
cmp byte [ecx + 0x78], 0x14
jne 0x45916a
mov ecx, dword [ecx + 0x30]
cmp ecx, dword [ebx]
jne 0x45916a
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00458d12
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [esi + 0x84]
mov dword [esp + 0xc], eax
jle 0x459138
mov eax, dword [ebx]
push eax
jmp 0x4592eb
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.0x458d69.21
push 0
push eax
mov eax, dword [ebx + 0x30]
push 0x1008
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4592f1
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 0x4592f1
push ebx
push edi
call fcn.00435019
mov eax, dword [ebx]
push eax
jmp 0x4592eb
mov ecx, 3
cmp dword [esi + 0x84], ecx
jl case.0x458d69.4
add eax, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [eax]
cmp dword [eax], 0
je 0x459223
mov eax, dword [eax]
mov edx, dword [eax + 4]
cmp edx, dword [edi + 4]
jne 0x459223
cmp byte [eax + 0x78], 3
jne 0x459223
mov eax, dword [eax]
cmp eax, dword [ebx + 0x30]
je 0x45923c
mov eax, dword [esp + 0x10]
inc ecx
add eax, 4
cmp ecx, dword [esi + 0x84]
mov dword [esp + 0x10], eax
jle 0x459205
jmp case.0x458d69.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.0x458d69.4
mov eax, dword [edi + 0x1b0]
test eax, eax
jle 0x459281
cmp dword [ebp + 8], eax
jne 0x459281
mov dword [edi + 0x1b0], 0
mov edx, dword [ebx]
push edx
jmp 0x4592eb
push edi
push ebx
push esi
call fcn.00456744
jmp 0x4592f1
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x45929e
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.0x458d69.4
lea ecx, [ecx]
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + eax*4]
cmp dword [ecx], 0
je 0x4592db
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x30]
cmp edx, dword [ebx]
jne 0x4592db
cmp byte [ecx + 0x78], 0x11
jne 0x4592db
mov eax, dword [esp + 0xc]
push eax
push esi
call fcn.00456bf3
mov eax, dword [esp + 0xc]
inc eax
cmp eax, dword [esi + 0x84]
mov dword [esp + 0xc], eax
jle 0x4592b2
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4592ff
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x45930d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [ebx + 0x54]
test ebx, ebx
je 0x45931b
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov edx, dword [esp + 0x14]
cmp edx, dword [edi + 0x1c]
jne 0x45932b
mov dword [edi + 0x1c], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.00456bf3
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4