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

Disassembly:
push 0xffffffffffffffff
push 0x5d8b38
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb8]
push ebp
mov edi, ecx
call fcn.004ddb90
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
mov ecx, ebp
call edx
xor ebx, ebx
test al, al
sete bl
cmp byte [edi + 0x94], 0
je 0x4dde3e
or ebx, 0x40
mov byte [edi + 0x94], 0
cmp dword [ebp + 0x60], 0xffffffff
jne 0x4dde4a
or ebx, 0x800
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
je 0x4dde61
mov dword [eax + 0x44], edi
mov eax, dword [eax + 0x98]
or ebx, 0x10
jmp 0x4dde68
mov ecx, ebp
call fcn.004da620
mov edx, dword [ebp]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x80]
push eax
mov ecx, ebp
call edx
mov dword [esp + 0xb0], esi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0xbc]
cmp esi, 0xffffffff
jne 0x4ddea2
mov eax, dword [edi + 0x70]
dec eax
mov dword [esp + 0xbc], eax
mov esi, eax
cmp dword [ebp + 0x60], 2
mov byte [esp + 0x17], 0
jne 0x4ddeef
cmp dword [edi + 0x90], 0
jne 0x4dded8
push 0xc
call fcn.00584773
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x4dded0
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x4dded2
xor eax, eax
mov dword [edi + 0x90], eax
mov ecx, dword [edi + 0x90]
push esi
call fcn.004dd840
test al, al
je 0x4ddeff
mov byte [esp + 0x17], 1
jmp 0x4ddeff
mov ecx, dword [edi + 0x90]
test ecx, ecx
je 0x4ddeff
push esi
call fcn.004dd8f0
cmp dword [ebp + 0x60], 1
jne 0x4ddf0e
cmp byte [ebp + 0x64], 0
je 0x4ddf0e
or ebx, 8
mov ecx, edi
call fcn.004d89a0
test eax, eax
jne 0x4ddf28
cmp dword [edi + 0x58], eax
je 0x4ddf28
add esi, 2
mov dword [esp + 0xbc], esi
cmp byte [edi + 0xa8], 0
mov dword [esp + 0x30], 0
je 0x4ddf3d
mov byte [ebp + 0x78], 1
cmp byte [ebp + 0x78], 0
mov byte [esp + 0x16], 0
jne 0x4de081
cmp dword [ebp + 0x60], 0xffffffff
je 0x4de070
push 0x30
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00585730
mov ecx, dword [esp + 0x9c]
mov eax, 8
add esp, 0xc
mov dword [esp + 0x34], 0x30
mov dword [esp + 0x5c], ecx
cmp dword [esp + 0x94], eax
jb 0x4ddf95
mov edx, dword [esp + 0x80]
mov dword [esp + 0x58], edx
jmp 0x4ddfa0
lea ecx, [esp + 0x80]
mov dword [esp + 0x58], ecx
test bl, 0x10
je 0x4ddfbc
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x38], 0x64
mov ecx, dword [edx + 0x98]
mov dword [esp + 0x48], ecx
jmp 0x4ddfcc
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], 0x62
mov dword [esp + 0x44], edx
test bl, 1
je 0x4ddfde
or dword [esp + 0x38], 1
mov dword [esp + 0x40], 3
test al, bl
je 0x4ddfeb
or dword [esp + 0x38], 1
mov dword [esp + 0x40], eax
test bl, 0x40
je 0x4de000
or dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], 0x40
mov eax, dword [edi + 0x98]
lea ecx, [esp + 0x34]
push ecx
push 1
push esi
push eax
mov dword [esp + 0x64], ebp
call dword [sym.imp.USER32.dll_InsertMenuItemW]
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4de028
mov byte [esp + 0x16], 1
jmp 0x4de070
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
lea edx, [esp + 0x64]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x98]
push edx
push eax
mov dword [esp + 0x6c], 0x1c
mov dword [esp + 0x70], 0x10
mov dword [esp + 0x74], 0x4000000
call dword [sym.imp.USER32.dll_SetMenuInfo]
cmp byte [ebp + 0x78], 0
jne 0x4de081
cmp byte [esp + 0x16], 0
je 0x4de1ec
push 0
lea ecx, [esp + 0x24]
or ebx, 0x100
push ecx
mov dword [esp + 0x30], ebx
mov ecx, ebp
mov dword [esp + 0x34], ebp
xor bl, bl
call fcn.004dad90
mov eax, dword [eax + 4]
xor esi, esi
cmp eax, esi
jne 0x4de0ae
mov dword [esp + 0x18], esi
jmp 0x4de0b5
mov edx, dword [eax + 8]
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x20]
call fcn.00506650
push 1
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.004dad90
mov eax, dword [eax + 4]
cmp eax, esi
je 0x4de0d6
mov esi, dword [eax + 8]
lea ecx, [esp + 0x20]
call fcn.00506650
mov eax, dword [esp + 0x18]
cmp dword [edi + 0xac], eax
jge 0x4de0f3
mov dword [edi + 0xac], eax
mov bl, 1
cmp dword [edi + 0xac], esi
jge 0x4de103
mov dword [edi + 0xac], esi
mov bl, 1
cmp byte [edi + 0xa8], 0
je 0x4de121
test bl, bl
jne 0x4de121
mov ecx, dword [edi + 0xac]
mov dword [ebp + 0xac], ecx
jmp 0x4de1e1
mov eax, dword [edi + 0x78]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
test eax, eax
je 0x4de1d0
jmp 0x4de144
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 8]
cmp byte [esi + 0x78], 0
jne 0x4de1ad
cmp esi, ebp
je 0x4de1ad
push 0x30
lea edx, [esp + 0x38]
push 0
mov byte [esi + 0x78], 1
mov ebx, dword [edi + 0x98]
push edx
call fcn.00585730
add esp, 0xc
cmp dword [esi + 0x60], 0xffffffff
mov dword [esp + 0x34], 0x30
mov dword [esp + 0x38], 0x120
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x54], esi
jne 0x4de196
mov dword [esp + 0x3c], 0x900
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push 1
push ecx
push ebx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 0xac]
mov dword [esi + 0xac], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
cmp esi, ebp
je 0x4de1c8
inc dword [esp + 0x18]
test eax, eax
jne 0x4de140
mov byte [edi + 0xa8], 1
mov dword [edi + 0xb0], 0xffffffff
mov esi, dword [esp + 0xbc]
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x30], 0
jne 0x4de265
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x98]
push ecx
push edx
or ebx, 0x400
push ebx
push esi
push eax
call dword [sym.imp.USER32.dll_InsertMenuW]
test eax, eax
jne 0x4de247
mov eax, dword [esp + 0x9c]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x94], 8
jb 0x4de240
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00584768
add esp, 4
xor al, al
jmp 0x4de32c
cmp byte [esp + 0x16], 0
je 0x4de265
push 1
push ebp
mov byte [ebp + 0x78], 1
mov edx, dword [edi + 0x98]
push esi
push edx
call fcn.004dceb0
add esp, 0x10
cmp byte [esp + 0x17], 0
je 0x4de278
mov eax, dword [ebp]
mov edx, dword [eax + 0x28]
push 1
mov ecx, ebp
call edx
cmp dword [esp + 0x1c], 0xfffffffd
jne 0x4de2be
push 0x30
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00585730
mov edx, dword [edi + 0x98]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
push 0
push 0xfffffffffffffffd
push edx
mov dword [esp + 0x44], 0x30
mov dword [esp + 0x48], 1
mov dword [esp + 0x50], 0x1000
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov ecx, edi
call fcn.004d89a0
test eax, eax
je 0x4de300
mov ecx, edi
call fcn.004d89a0
cmp dword [eax + 0x178], 0
je 0x4de300
mov ecx, edi
call fcn.004d89a0
cmp dword [eax + 0x134], 0
jne 0x4de300
mov eax, dword [eax + 0x178]
test eax, eax
je 0x4de300
mov eax, dword [eax + 0x138]
push eax
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x94], 8
jb 0x4de32a
mov edx, dword [esp + 0x80]
push edx
call fcn.00584768
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00585b7b
add esp, 0xa0
ret 8