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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x440bb7
push eax
mov al, byte [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push ebp
xor ebx, ebx
push esi
test al, al
push edi
je 0x414009
mov edi, dword [0x457454]
neg edi
sbb edi, edi
cmp edi, ebx
je 0x413732
mov eax, dword [0x453330]
mov dword [esp + 0x10], eax
mov ebp, dword [0x45744c]
mov esi, dword [0x457450]
cmp edi, 0xffffffff
mov dword [esp + 0x348], ebx
mov ecx, edi
jne 0x413678
xor edx, edx
cmp esi, ebx
jbe 0x413678
mov eax, ebp
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x413678
inc edx
add eax, 4
cmp edx, esi
jb 0x41366a
mov edi, dword [ecx]
cmp edi, ebx
jne 0x413698
mov eax, dword [ecx + 4]
inc eax
cmp eax, esi
jae 0x413698
lea edx, [ebp + eax*4]
mov edi, dword [edx]
cmp edi, ebx
jne 0x413698
inc eax
add edx, 4
cmp eax, esi
jb 0x41368a
mov ebp, dword [ecx + 8]
add ecx, 0xc
push ecx
lea ecx, [esp + 0x14]
call fcn.00433661
push ebp
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
jne 0x413716
mov ecx, dword [0x45744c]
cmp ecx, ebx
je 0x413716
mov eax, ebp
xor edx, edx
shr eax, 4
div dword [0x457450]
mov esi, dword [ecx + edx*4]
cmp esi, ebx
lea eax, [ecx + edx*4]
je 0x413716
cmp dword [esi + 8], ebp
je 0x4136e3
mov eax, esi
mov esi, dword [esi]
cmp esi, ebx
jne 0x4136d4
jmp 0x413716
mov ecx, dword [esi]
lea edx, [esi + 0xc]
push 1
push edx
mov dword [eax], ecx
call fcn.0042d926
mov eax, dword [0x457458]
mov dword [esi], eax
mov eax, dword [0x457454]
dec eax
mov dword [0x457458], esi
mov dword [0x457454], eax
jne 0x413716
mov ecx, 0x457448
call fcn.00416220
lea ecx, [esp + 0x10]
mov dword [esp + 0x348], 0xffffffff
call fcn.00433528
cmp edi, ebx
jne 0x41363f
mov ebp, dword [0x457434]
neg ebp
sbb ebp, ebp
cmp ebp, ebx
je 0x413808
mov ebx, dword [0x45742c]
mov edi, dword [0x457430]
cmp ebp, 0xffffffff
mov edx, ebp
jne 0x41376d
xor ecx, ecx
test edi, edi
jbe 0x41376d
mov eax, ebx
mov edx, dword [eax]
test edx, edx
jne 0x41376d
inc ecx
add eax, 4
cmp ecx, edi
jb 0x41375f
mov ebp, dword [edx]
test ebp, ebp
jne 0x41378c
mov eax, dword [edx + 4]
inc eax
cmp eax, edi
jae 0x41378c
lea ecx, [ebx + eax*4]
mov ebp, dword [ecx]
test ebp, ebp
jne 0x41378c
inc eax
add ecx, 4
cmp eax, edi
jb 0x41377e
mov esi, dword [edx + 8]
push esi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
jne 0x4137f4
mov ebx, dword [0x45742c]
test ebx, ebx
je 0x4137fa
mov edi, dword [0x457430]
mov eax, esi
shr eax, 4
xor edx, edx
div edi
mov eax, dword [ebx + edx*4]
test eax, eax
lea ecx, [ebx + edx*4]
je 0x413800
cmp dword [eax + 8], esi
je 0x4137cc
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x4137bd
jmp 0x413800
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [0x457438]
mov dword [eax], ecx
mov dword [0x457438], eax
mov eax, dword [0x457434]
dec eax
mov dword [0x457434], eax
jne 0x4137f4
mov ecx, 0x457428
call fcn.004162c0
mov ebx, dword [0x45742c]
mov edi, dword [0x457430]
test ebp, ebp
jne 0x413750
mov ebp, dword [esp + 0x354]
xor ebx, ebx
push ebp
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [esp + 0x24], eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x40]
mov dword [esp + 0x38], 0x2c
mov dword [esp + 0x3c], 0x16
rep stosd dword es:[edi], eax
call fcn.00434899
cmp eax, ebx
je 0x41384b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x41384d
xor eax, eax
push eax
lea ecx, [esp + 0x70]
call fcn.00436ab8
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x6c]
neg eax
sbb eax, eax
push 0xff000000
and eax, edi
push 0x11
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x354], 1
call fcn.0040f7b0
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x108]
push eax
push ecx
mov byte [esp + 0x350], 2
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x108]
lea ecx, [eax + 2]
cmp ecx, 0x10
jg 0x4138b3
mov ecx, 0x10
mov esi, dword [esp + 0x350]
add ecx, 4
cdq
sub eax, edx
mov dword [esp + 0x64], ecx
sar eax, 1
add eax, 2
cmp esi, ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
je 0x413982
mov al, byte [esp + 0x35c]
test al, al
jne 0x413982
push 0x445688
mov ecx, esi
call fcn.004347e2
test eax, eax
je 0x41393c
push ebx
mov ecx, esi
call fcn.0043864b
cmp eax, ebx
je 0x41393c
mov edx, dword [eax + 0x1c]
push ebx
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00434ebd
cmp eax, ebx
jne 0x413925
xor eax, eax
jmp 0x413928
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x41393c
push 0x457468
call dword [sym.imp.USER32.dll_SetRectEmpty]
jmp 0x413fe1
push 0x445b58
mov ecx, esi
call fcn.004347e2
test eax, eax
je 0x413951
cmp dword [esi + 0x78], ebx
jne 0x41397b
mov ecx, esi
call fcn.00431631
mov esi, eax
cmp esi, ebx
je 0x413982
push 0x445660
mov ecx, esi
call fcn.004347e2
test eax, eax
je 0x413977
mov ecx, esi
call fcn.00431631
mov esi, eax
cmp esi, ebx
je 0x413982
add esi, 0x6c
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
xor esi, esi
test edi, edi
mov dword [esp + 0x34], esi
jle 0x413f5e
mov al, byte [0x4572d0]
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x140], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
and edx, 0xffffffdf
lea ecx, [esp + 0x140]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x38]
stosw word es:[edi], ax
push edx
push 1
push esi
push ebp
stosb byte es:[edi], al
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], 0xff
call ebx
mov eax, dword [esp + 0x40]
test ah, 1
jne 0x413ede
mov cl, byte [esp + 0x35c]
test cl, cl
je 0x413a02
test al, 4
jne 0x413ede
or ah, 1
test cl, cl
mov dword [esp + 0x40], eax
je 0x413a85
xor eax, eax
lea edi, [esp + 0x140]
or ecx, 0xffffffff
mov edx, dword [esp + 0x70]
repne scasb al, byte es:[edi]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x80]
not ecx
dec ecx
push 0x420
push eax
push ecx
lea ecx, [esp + 0x14c]
mov dword [esp + 0x94], 0x3e8
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
sub eax, edi
and eax, 0xffff
shl eax, 0x10
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
or al, 0x20
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x38]
push ecx
push 1
push esi
push ebp
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov eax, dword [esp + 0x40]
test ah, 8
jne 0x413ede
lea edx, [esp + 0x140]
lea ecx, [esp + 0x20]
push edx
call fcn.00433596
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x348], 3
test eax, eax
je 0x413b27
lea ecx, [esp + 0x1c]
mov esi, eax
push ecx
push eax
mov ecx, 0x457448
call fcn.00416280
test eax, eax
jne 0x413b8c
mov eax, dword [0x45744c]
test eax, eax
jne 0x413af8
mov edx, dword [0x457450]
push 1
push edx
mov ecx, 0x457448
call fcn.00416310
mov ecx, 0x457448
call fcn.00416380
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], esi
mov dword [eax + 4], ecx
mov edx, dword [0x45744c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [0x45744c]
mov edx, dword [esp + 0x1c]
jmp 0x413b89
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, 0x457408
mov esi, eax
call fcn.00416280
test eax, eax
jne 0x413b8c
mov eax, dword [0x45740c]
test eax, eax
jne 0x413b5c
mov eax, dword [0x457410]
push 1
push eax
mov ecx, 0x457408
call fcn.00416310
mov ecx, 0x457408
call fcn.00416380
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], esi
mov dword [eax + 4], ecx
mov edx, dword [0x45740c]
mov ecx, dword [esp + 0x28]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
mov ecx, dword [0x45740c]
mov edx, dword [esp + 0x28]
mov dword [ecx + edx*4], eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [eax + 0xc]
call fcn.00433661
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413ebc
mov edx, eax
mov ebp, dword [edx + 4]
test ebp, ebp
je 0x413ebc
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebp
mov ebp, dword [ebp]
push 0x100
mov esi, dword [eax + 8]
lea eax, [esp + 0x244]
push eax
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0x240]
push str.ToolbarWindow32
push edx
call fcn.0041f000
add esp, 8
test eax, eax
jne 0x413c4a
mov edx, dword [esi + 0x1c]
mov ecx, 6
lea edi, [esp + 0xa0]
mov dword [esp + 0x98], 0x20
mov dword [esp + 0x9c], 0x21
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x98]
push eax
push ecx
push 0x441
push edx
call ebx
cmp eax, 0xffffffff
je 0x413c4a
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jne 0x413c4a
cmp dword [esp + 0xa4], 0xffffffff
jne 0x413c57
test ebp, ebp
jne 0x413bb8
jmp 0x413ebc
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x431
push ecx
call ebx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0xa4]
test ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x94], edx
je 0x413d98
mov esi, dword [0x457430]
mov eax, ecx
shr eax, 4
xor edx, edx
xor edi, edi
div esi
mov eax, dword [0x45742c]
mov dword [esp + 0x2c], ecx
cmp eax, edi
mov ebx, edx
je 0x413cc2
mov eax, dword [eax + ebx*4]
cmp eax, edi
je 0x413cf4
cmp dword [eax + 8], ecx
je 0x413cb8
mov eax, dword [eax]
cmp eax, edi
jne 0x413cab
jmp 0x413cf4
cmp eax, edi
jne 0x413eab
jmp 0x413cf4
lea ebp, [esi*4]
push ebp
call fcn.00433269
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [0x45742c], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x457430], esi
xor edi, edi
mov eax, dword [0x457438]
cmp eax, edi
jne 0x413d3a
mov eax, dword [0x457440]
push 0x14
push eax
push 0x45743c
call fcn.0042ec33
mov edx, dword [0x457440]
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4 - 0x10]
lea eax, [edx - 1]
cmp eax, edi
jl 0x413d91
lea edx, [eax + 1]
mov eax, dword [0x457438]
mov dword [ecx], eax
mov eax, ecx
sub ecx, 0x14
dec edx
jne 0x413d2b
mov dword [0x457438], eax
mov ecx, dword [0x457434]
mov edx, dword [eax]
inc ecx
mov dword [0x457438], edx
mov dword [0x457434], ecx
lea ecx, [eax + 0xc]
mov esi, ecx
xor edx, edx
mov dword [eax + 8], edi
mov dword [esi], edx
mov dword [esi + 4], edx
cmp ecx, edi
je 0x413d67
mov dword [ecx], edi
mov dword [ecx + 4], edi
add ecx, 8
mov esi, edx
dec edx
test esi, esi
jne 0x413d5e
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov edx, dword [0x45742c]
mov ecx, dword [edx + ebx*4]
mov dword [eax], ecx
mov edx, dword [0x45742c]
jmp 0x413ea8
mov eax, dword [0x457438]
jmp 0x413d3a
mov ecx, dword [esp + 0x48]
mov esi, dword [0x4573f0]
mov eax, ecx
xor edx, edx
shr eax, 4
div esi
mov eax, dword [0x4573ec]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x2c], ecx
mov ebx, edx
je 0x413dda
mov eax, dword [eax + ebx*4]
cmp eax, edi
je 0x413e0c
cmp dword [eax + 8], ecx
je 0x413dd0
mov eax, dword [eax]
cmp eax, edi
jne 0x413dc3
jmp 0x413e0c
cmp eax, edi
jne 0x413eab
jmp 0x413e0c
lea ebp, [esi*4]
push ebp
call fcn.00433269
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [0x4573ec], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x4573f0], esi
xor edi, edi
mov eax, dword [0x4573f8]
cmp eax, edi
jne 0x413e56
mov eax, dword [0x457400]
push 0x14
push eax
push 0x4573fc
call fcn.0042ec33
mov edx, dword [0x457400]
lea ecx, [edx + edx*4]
lea ecx, [eax + ecx*4 - 0x10]
lea eax, [edx - 1]
cmp eax, edi
jl 0x413fb3
lea edx, [eax + 1]
mov eax, dword [0x4573f8]
mov dword [ecx], eax
mov eax, ecx
sub ecx, 0x14
dec edx
jne 0x413e47
mov dword [0x4573f8], eax
mov ecx, dword [0x4573f4]
mov edx, dword [eax]
inc ecx
mov dword [0x4573f8], edx
mov dword [0x4573f4], ecx
lea ecx, [eax + 0xc]
mov esi, ecx
xor edx, edx
mov dword [eax + 8], edi
mov dword [esi], edx
mov dword [esi + 4], edx
cmp ecx, edi
je 0x413e83
mov dword [ecx], edi
mov dword [ecx + 4], edi
add ecx, 8
mov esi, edx
dec edx
test esi, esi
jne 0x413e7a
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov edx, dword [0x4573ec]
mov ecx, dword [edx + ebx*4]
mov dword [eax], ecx
mov edx, dword [0x4573ec]
mov dword [edx + ebx*4], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x94]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], 2
call fcn.00433528
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x354]
mov al, byte [esp + 0x35c]
test al, al
jne 0x413f4b
push 1
push esi
push ebp
lea ecx, [esp + 0xd4]
call fcn.00412320
lea eax, [esp + 0x6c]
lea ecx, [esp + 0xc8]
push eax
mov byte [esp + 0x34c], 4
call fcn.004126d0
cmp eax, dword [esp + 0x10]
jle 0x413f1c
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0xcc]
call fcn.00412830
cmp eax, dword [esp + 0x18]
jle 0x413f37
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xc8]
mov byte [esp + 0x348], 2
call fcn.004124d0
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov dword [esp + 0x34], esi
jl 0x41399a
mov edi, eax
mov al, byte [esp + 0x35c]
test al, al
jne 0x413fe1
xor esi, esi
test edi, edi
jle 0x413fe1
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], 0x10
push edx
push 1
push esi
push ebp
call ebx
mov eax, dword [esp + 0x40]
test ah, 8
jne 0x413fbd
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
xor eax, eax
and ecx, 0xffff
mov ah, byte [esp + 0x18]
and edx, 0xff
and eax, 0xffff
shl ecx, 0x10
or eax, ecx
or eax, edx
jmp 0x413fc1
mov eax, dword [0x4573f8]
jmp 0x413e56
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], eax
push ecx
push 1
push esi
push ebp
mov dword [esp + 0x4c], 0x20
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
inc esi
cmp esi, edi
jl 0x413f6f
lea ecx, [esp + 0xb8]
mov byte [esp + 0x348], 1
call fcn.0040f800
lea ecx, [esp + 0x6c]
mov dword [esp + 0x348], 0xffffffff
call fcn.00436b2a
mov ecx, dword [esp + 0x340]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x33c
ret